windows vsprintf bit
This commit is contained in:
+2
-2
@@ -241,11 +241,11 @@ VA_DECL(const char *, s)
|
|||||||
end_screen();
|
end_screen();
|
||||||
if (WINDOWPORT("tty")) {
|
if (WINDOWPORT("tty")) {
|
||||||
buf[0] = '\n';
|
buf[0] = '\n';
|
||||||
(void) vsprintf(&buf[1], s, VA_ARGS);
|
(void) vsnprintf(&buf[1], sizeof buf - (1 + sizeof "\n"), s, VA_ARGS);
|
||||||
Strcat(buf, "\n");
|
Strcat(buf, "\n");
|
||||||
msmsg(buf);
|
msmsg(buf);
|
||||||
} else {
|
} else {
|
||||||
(void) vsprintf(buf, s, VA_ARGS);
|
(void) vsnprintf(buf, sizeof buf - sizeof "\n", s, VA_ARGS);
|
||||||
Strcat(buf, "\n");
|
Strcat(buf, "\n");
|
||||||
raw_printf(buf);
|
raw_printf(buf);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user