From c633155865307e236ae73e2c3dc7e3560b796f86 Mon Sep 17 00:00:00 2001 From: Bert Wesarg Date: Wed, 22 Oct 2008 09:00:48 +0000 Subject: [PATCH] Don't use -import argument as fprintf format The filename argument was directly used as an fprintf format string, which is bad for arguments like "%s". --- source/preferences.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/source/preferences.c b/source/preferences.c index 5b1cd67..74592d6 100644 --- a/source/preferences.c +++ b/source/preferences.c @@ -1,4 +1,4 @@ -static const char CVSID[] = "$Id: preferences.c,v 1.159 2008/08/20 14:57:35 lebert Exp $"; +static const char CVSID[] = "$Id: preferences.c,v 1.160 2008/10/22 09:00:48 lebert Exp $"; /******************************************************************************* * * * preferences.c -- Nirvana Editor preferences processing * @@ -1519,9 +1519,8 @@ void ImportPrefFile(const char *filename, int convertOld) ImportedFile = XtNewString(filename); } else { - fprintf(stderr, "Could not read additional preferences file: "); - fprintf(stderr, filename); - fprintf(stderr, "\n"); + fprintf(stderr, "Could not read additional preferences file: %s\n", + filename); } } -- 2.11.4.GIT