> 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 08:39:14 up 21:03, 2 users, load average: 0.08, 0.13, 0.18
This commit is contained in:
@ -61,6 +61,7 @@ static int rvsnprintf(char* out, size_t n, const char* fmt, va_list ap) {
|
||||
n --;
|
||||
out ++;
|
||||
}
|
||||
is_fmt = false;
|
||||
}
|
||||
break;
|
||||
case 's':
|
||||
@ -69,6 +70,7 @@ static int rvsnprintf(char* out, size_t n, const char* fmt, va_list ap) {
|
||||
size_t len = strlen(va);
|
||||
strncpy(out, va, len);
|
||||
n += len;
|
||||
is_fmt = false;
|
||||
}
|
||||
default:
|
||||
*out = *fmt;
|
||||
|
Reference in New Issue
Block a user