mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-18 17:25:24 +01:00
Zero terminate strings in wstrcpy. Resolves #216.
This commit is contained in:
parent
44c35017e7
commit
4e13e9ba11
2 changed files with 4 additions and 4 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue