msg.cpp: fixed possible sigsegv caused by a tricky filename
committer: ml1050 <ml1050> 1108382780 +0000
This commit is contained in:
+2
-2
@@ -66,9 +66,9 @@ void printClearLine(FILE *f)
|
|||||||
static void pr_print(bool c, const char *msg)
|
static void pr_print(bool c, const char *msg)
|
||||||
{
|
{
|
||||||
if (c && !opt->to_stdout)
|
if (c && !opt->to_stdout)
|
||||||
con_fprintf(stderr,msg);
|
con_fprintf(stderr, "%s", msg);
|
||||||
else
|
else
|
||||||
fprintf(stderr,msg);
|
fprintf(stderr, "%s", msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void pr_error(const char *iname, const char *msg, bool is_warning)
|
static void pr_error(const char *iname, const char *msg, bool is_warning)
|
||||||
|
|||||||
Reference in New Issue
Block a user