commit: 4e13e9ba11472e7ac7e1d4d40b590225a768aca4
parent 44c35017e7903299e7e93da6b801909b2b21d107
Author: rick-masters <grick23@gmail.com>
Date: Sun, 27 Nov 2022 20:39:18 +0000
Zero terminate strings in wstrcpy. Resolves #216.
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sysa/heirloom-devtools-070527/heirloom-devtools-070527.checksums b/sysa/heirloom-devtools-070527/heirloom-devtools-070527.checksums
@@ -1,5 +1,5 @@
860fd6b5be736f8b9ebc6adba1198e27cf579dec9325cc54a6b0dbac0aecdc3e /usr/bin/yacc
-d28d2c75f95d1c734cdbfc11f68e730237a2eb4238da81ce2e88de38253438b7 /usr/bin/lex
+a9e6c3d893a95094968681b9eb31cd9ba6c58c46a3239911ed66183ea21be659 /usr/bin/lex
ffe696afc1bda32a5f4035e29b3275cab73a27df7635ccbe02ed49a30374ccdd /usr/lib/mes/libl.a
bf3fb293f1ff89ee3dbcb08166c64b7a6793b49a12673d7633e3353ebea80d4d /yaccpar
ee0f187b844f50d64c912bfcb5d73706662846d6d8a90b8b1fb20dda60464734 /lex/ncform
diff --git a/sysa/heirloom-devtools-070527/patches/lex_remove_wchar.patch b/sysa/heirloom-devtools-070527/patches/lex_remove_wchar.patch
@@ -120,11 +120,11 @@ index b8618e3..34a7e9a 100644
+*/
+int
+wstrcpy(char const *destination, wchar_t const *source) {
-+ int i;
-+ for (i = 0; source[i] != 0; i++)
++ int i = 0;
++ do {
+ destination[i]=source[i];
++ } while (source[i++] != 0);
+}
-+
int
yylex(void)
{