about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-05-19 02:55:27 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-05-19 02:55:27 +0000
commit5b0fcf2f01a118bee0d6d02076e7171bc7546341 (patch)
tree082d7cd2d8bf0731c275a743d879cd98ea015612
parent101ecd5d8a66a13707921d68cef968bbd9ac5687 (diff)
downloadnetpbm-mirror-master.tar.gz
netpbm-mirror-master.tar.xz
netpbm-mirror-master.zip
cleanup, fix buffer overrun from 5 weeks ago master
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2500 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r--converter/pbm/pbmtozinc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/pbm/pbmtozinc.c b/converter/pbm/pbmtozinc.c
index 91cf25df..66ec5582 100644
--- a/converter/pbm/pbmtozinc.c
+++ b/converter/pbm/pbmtozinc.c
@@ -59,7 +59,7 @@ imageName(const char * const inputFileName) {
         char * nameBuf;
         char * cp;
 
-        MALLOCARRAY_NOFAIL(nameBuf, strlen(inputFileName +1));
+        MALLOCARRAY_NOFAIL(nameBuf, strlen(inputFileName) + 1);
 
         strcpy(nameBuf, inputFileName);