1
Fork 0
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:
Andreas Kling 2018-10-30 00:06:31 +01:00
parent 8e640539ef
commit 0f20be05a6
5 changed files with 18 additions and 27 deletions

View file

@ -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)