Zero terminate strings in wstrcpy. Resolves #216.
This commit is contained in:
parent
44c35017e7
commit
4e13e9ba11
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue