diff --git a/src/gfile/gfile_printg.c b/src/gfile/gfile_printg.c index 94a16142..577e6246 100644 --- a/src/gfile/gfile_printg.c +++ b/src/gfile/gfile_printg.c @@ -137,7 +137,7 @@ int vfnprintg(GFILE *f, int maxlen, const char *fmt, va_list arg) { case 's': filler = ' '; if ((s = va_arg(arg, char *)) == 0) - s = "(null)"; + s = (char*)"(null)"; if (precision == 0) precision = 32767; for (p = s; *p && (--precision >= 0); p++);