about summary refs log tree commit diff
path: root/converter/other/tifftopnm.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-05-20 02:12:07 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-05-20 02:12:07 +0000
commit787f338634d2f329ad7c6ed3551eee979e50a528 (patch)
tree27cd49b89cf4d177b60f49d85d80487043fdf927 /converter/other/tifftopnm.c
parente5f20617a85881dc01b0b0223a160302dcc0ecc6 (diff)
downloadnetpbm-mirror-787f338634d2f329ad7c6ed3551eee979e50a528.tar.gz
netpbm-mirror-787f338634d2f329ad7c6ed3551eee979e50a528.tar.xz
netpbm-mirror-787f338634d2f329ad7c6ed3551eee979e50a528.zip
Quiet some GCC -Wformat-security compiler warnings
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2198 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/tifftopnm.c')
-rw-r--r--converter/other/tifftopnm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/converter/other/tifftopnm.c b/converter/other/tifftopnm.c
index fcfb03f6..214c02aa 100644
--- a/converter/other/tifftopnm.c
+++ b/converter/other/tifftopnm.c
@@ -1457,7 +1457,7 @@ convertRasterInMemory(pnmOut *       const pnmOutP,
         int ok;
         ok = TIFFRGBAImageOK(tif, emsg);
         if (!ok) {
-            pm_message(emsg);
+            pm_message("%s", emsg);
             *statusP = CONV_UNABLE;
         } else {
             uint32 * raster;
@@ -1477,14 +1477,14 @@ convertRasterInMemory(pnmOut *       const pnmOutP,
                 
                 ok = TIFFRGBAImageBegin(&img, tif, stopOnErrorFalse, emsg);
                 if (!ok) {
-                    pm_message(emsg);
+                    pm_message("%s", emsg);
                     *statusP = CONV_FAILED;
                 } else {
                     int ok;
                     ok = TIFFRGBAImageGet(&img, raster, cols, rows);
                     TIFFRGBAImageEnd(&img) ;
                     if (!ok) {
-                        pm_message(emsg);
+                        pm_message("%s", emsg);
                         *statusP = CONV_FAILED;
                     } else {
                         *statusP = CONV_DONE;