> compile NEMU

221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 00:18:30 up  7:58,  1 user,  load average: 0.25, 0.25, 0.25
This commit is contained in:
tracer-ics2023
2024-09-04 00:18:31 +08:00
committed by zzy
parent 6591b9179b
commit 834073f8f2

View File

@ -32,7 +32,7 @@ char *strncpy(char *dst, const char *src, size_t n) {
}
char *strcat(char *dst, const char *src) {
return strcpy(dst + strlen(dst), src);
return memcpy(dst + strlen(dst), src, strlen(src) + 1);
}
int strcmp(const char *s1, const char *s2) {