commit: bd97b1f86c1af1e7485c03fb5d78dd075ce4a30b
parent 5139205d1b99c2a372551e5f216e66e75fd8217d
Author: fosslinux <fosslinux@aussies.space>
Date: Mon, 28 Nov 2022 18:59:59 +1100
Merge pull request #217 from rick-masters/fix-zero-terminate-wstrcpy
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)
{