> 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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user