Temporary vfnprintg() workaround to suppress warnings

Joel Bodenmann 2021-08-26 02:21:19 +02:00
parent 0dac6b4d0f
commit cd0383d3e8
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ int vfnprintg(GFILE *f, int maxlen, const char *fmt, va_list arg) {
case 's': case 's':
filler = ' '; filler = ' ';
if ((s = va_arg(arg, char *)) == 0) if ((s = va_arg(arg, char *)) == 0)
s = "(null)"; s = (char*)"(null)";
if (precision == 0) if (precision == 0)
precision = 32767; precision = 32767;
for (p = s; *p && (--precision >= 0); p++); for (p = s; *p && (--precision >= 0); p++);