diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-05-06 01:44:55 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2020-05-06 01:44:55 +0000 |
commit | 6d7dbf7b94a0fd7b38b33c98bae33bfcfc260ba9 (patch) | |
tree | 3c422ec7afd7716d79ad029bef4fa8dff30ab4e1 /converter | |
parent | e9a1f733afee7133879affb4b11e4ac602f10718 (diff) | |
download | netpbm-mirror-6d7dbf7b94a0fd7b38b33c98bae33bfcfc260ba9.tar.gz netpbm-mirror-6d7dbf7b94a0fd7b38b33c98bae33bfcfc260ba9.tar.xz netpbm-mirror-6d7dbf7b94a0fd7b38b33c98bae33bfcfc260ba9.zip |
Release 10.90.02
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@3804 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter')
-rw-r--r-- | converter/pbm/pbmtonokia.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/converter/pbm/pbmtonokia.c b/converter/pbm/pbmtonokia.c index 73b62b96..80b0bd59 100644 --- a/converter/pbm/pbmtonokia.c +++ b/converter/pbm/pbmtonokia.c @@ -412,7 +412,8 @@ convertToNpm(bit ** const image, header[ 3] = 0; header[ 4] = len; header[ 5] = 0; - memcpy(&header[5], text, len); + if (text) + memcpy(&header[6], text, len); header[ 6 + len] = cols; header[ 7 + len] = rows; header[ 8 + len] = 1; |