From 5a3d18a6d6519b80ee9e0d67131ea48e302af2ef Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 3 May 2012 12:36:39 -0500 Subject: [PATCH] Fix 'format not a string literal' error (cherry picked from commit 8f9f4e5697a733eb6c8eec6d056dc80c531b4ee0) --- kexi/3rdparty/kexisql3/src/shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kexi/3rdparty/kexisql3/src/shell.c b/kexi/3rdparty/kexisql3/src/shell.c index a69f96be4..0f5809c57 100644 --- a/kexi/3rdparty/kexisql3/src/shell.c +++ b/kexi/3rdparty/kexisql3/src/shell.c @@ -361,7 +361,7 @@ static void output_csv(struct callback_data *p, const char *z, int bSep){ output_c_string(p->out, z); } if( bSep ){ - fprintf(p->out, p->separator); + fprintf(p->out, "%s", p->separator); } } @@ -1021,7 +1021,7 @@ static int do_meta_command(char *zLine, struct callback_data *p){ }else if( c=='h' && strncmp(azArg[0], "help", n)==0 ){ - fprintf(stderr,zHelp); + fprintf(stderr, "%s", zHelp); }else if( c=='i' && strncmp(azArg[0], "import", n)==0 && nArg>=3 ){