From 13618b73e353f9016f7c890e6b51eda2229737d1 Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Thu, 15 Aug 2013 21:03:45 +0200 Subject: Fix 'format not a string literal' error --- src/moc/moc.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/moc/moc.y') diff --git a/src/moc/moc.y b/src/moc/moc.y index 4540262be..b10e444e8 100644 --- a/src/moc/moc.y +++ b/src/moc/moc.y @@ -2873,8 +2873,8 @@ void generateClass() // generate C++ source code for a class fn = &g->fileName[i]; fprintf( out, hdr1, (const char*)qualifiedClassName(),(const char*)fn); fprintf( out, hdr2, (const char*)dstr ); - fprintf( out, hdr3 ); - fprintf( out, hdr4 ); + fprintf( out, "%s", hdr3 ); + fprintf( out, "%s", hdr4 ); if ( !g->noInclude ) { /* -- cgit v1.2.1