mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
Implement sys$getcwd properly.
Also fixed broken strcpy that didn't copy the null terminator.
This commit is contained in:
parent
8e640539ef
commit
0f20be05a6
5 changed files with 18 additions and 27 deletions
|
@ -13,8 +13,7 @@ void memcpy(void *dest, const void *src, DWORD n)
|
|||
|
||||
void strcpy(char* dest, const char *src)
|
||||
{
|
||||
while (*src)
|
||||
*(dest++) = *(src++);
|
||||
while ((*dest++ = *src++) != '\0');
|
||||
}
|
||||
|
||||
void* memset(void* dest, BYTE c, DWORD n)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue