Description: avoid FTBFS when building with hardened security flags
 When building with -Werror=format-security, compilation fails if
 printf and scanf are called without format arguments.

 This patch replaces calls to fprintf with equivalent calls to fputs. 

Author: Emanuele Rocca <ema@debian.org>

--- shhmsg-1.4.1.orig/errno.c
+++ shhmsg-1.4.1/errno.c
@@ -62,7 +62,7 @@ msgPerror(const char *format, ...)
 	vfprintf(GET_ERROR_STREAM, format, ap);
 	va_end(ap);
     } else
-	fprintf(GET_ERROR_STREAM, msgGetName());
+	fputs(msgGetName(), GET_ERROR_STREAM);
     fprintf(GET_ERROR_STREAM, ": %s\n", strerror(en));
 }
 
@@ -105,7 +105,7 @@ msgFatalPerror(const char *format, ...)
 	vfprintf(GET_ERROR_STREAM, format, ap);
 	va_end(ap);
     } else
-	fprintf(GET_ERROR_STREAM, msgGetName());
+	fputs(msgGetName(), GET_ERROR_STREAM);
     fprintf(GET_ERROR_STREAM, ": %s\n", strerror(en));
     exit(99);
 }
