Backed off vsnprintf() to vsprintf() because Turbo C doesn't do the former.
authorDavid Griffith <dave@661.org>
Fri, 26 May 2023 01:46:53 +0000 (18:46 -0700)
committerDavid Griffith <dave@661.org>
Fri, 26 May 2023 02:50:48 +0000 (19:50 -0700)
Given this is DOS, using vsprintf() like this should be fine.

src/dos/dosinit.c

index 26213904ea954e26dcd286cb949d0400fd0b8cd6..7b6fc3fc8e78f5504fb8426579042343b4f240f5 100644 (file)
@@ -262,7 +262,7 @@ void os_warn (const char *s, ...)
        int style;
 
        va_start(m, s);
-       vsnprintf(errorstring, sizeof(char) * 80, s, m);
+       vsprintf(errorstring, s, m);
        va_end(m);
 
        os_beep(BEEP_HIGH);