about summary refs log tree commit diff
path: root/converter/ppm/sldtoppm.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2017-12-30 20:24:17 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2017-12-30 20:24:17 +0000
commita24369691a810b5cb4f929618b080d82c8200938 (patch)
treed3d07e8452fd82145946a10e815d2b0634b26408 /converter/ppm/sldtoppm.c
parenta5fb397b3ab3ac6b2c17c72598036bedbdca1816 (diff)
downloadnetpbm-mirror-a24369691a810b5cb4f929618b080d82c8200938.tar.gz
netpbm-mirror-a24369691a810b5cb4f929618b080d82c8200938.tar.xz
netpbm-mirror-a24369691a810b5cb4f929618b080d82c8200938.zip
Release 10.80.02
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@3100 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/ppm/sldtoppm.c')
-rw-r--r--converter/ppm/sldtoppm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/converter/ppm/sldtoppm.c b/converter/ppm/sldtoppm.c
index 707f6d6f..550eed5b 100644
--- a/converter/ppm/sldtoppm.c
+++ b/converter/ppm/sldtoppm.c
@@ -196,7 +196,7 @@ slidefind(const char * const sname,
     /* Read slide library header and verify. */
     
     if ((fread(libent, 32, 1, slfile) != 1) ||
-        (!streq((char *)libent, "AutoCAD Slide Library 1.0\015\012\32"))) {
+        (!strneq((char *)libent, "AutoCAD Slide Library 1.0\015\012\32", 32))) {
         pm_error("not an AutoCAD slide library file.");
     }
     pos = 32;
@@ -208,14 +208,14 @@ slidefind(const char * const sname,
         readCt = fread(libent, 36, 1, slfile);
         if (readCt != 1)
             eof = true;
-        else if (strlen((char *)libent) == 0)
+        else if (strnlen((char *)libent, 32) == 0)
             eof = true;
 
         if (!eof) {
             pos += 36;
             if (dironly) {
                 pm_message("  %s", libent);
-            } else if (streq((char *)libent, uname)) {
+            } else if (strneq((char *)libent, uname, 32)) {
                 long dpos;
 
                 dpos = (((((libent[35] << 8) | libent[34]) << 8) |
@@ -350,7 +350,7 @@ slider(slvecfn   slvec,
 
     /* Verify that slide format is compatible with this program. */
 
-    if (!streq(slfrof.slh, slhi.slh))
+    if (!STRSEQ(slfrof.slh, slhi.slh))
         pm_error("this is not an AutoCAD slide file.");
 
     /* Verify that the number format and file level in the header  are