msg.cpp: fixed possible sigsegv caused by a tricky filename

committer: ml1050 <ml1050> 1108382780 +0000
This commit is contained in:
László Molnár
2005-02-14 12:06:20 +00:00
parent 586b43048f
commit dbf0c9f016
+2 -2
View File
@@ -66,9 +66,9 @@ void printClearLine(FILE *f)
static void pr_print(bool c, const char *msg)
{
if (c && !opt->to_stdout)
con_fprintf(stderr,msg);
con_fprintf(stderr, "%s", msg);
else
fprintf(stderr,msg);
fprintf(stderr, "%s", msg);
}
static void pr_error(const char *iname, const char *msg, bool is_warning)