diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2015-05-19 02:55:27 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2015-05-19 02:55:27 +0000 |
commit | 5b0fcf2f01a118bee0d6d02076e7171bc7546341 (patch) | |
tree | 082d7cd2d8bf0731c275a743d879cd98ea015612 | |
parent | 101ecd5d8a66a13707921d68cef968bbd9ac5687 (diff) | |
download | netpbm-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.c | 2 |
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); |