about summary refs log tree commit diff
path: root/converter/pgm
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-01-19 02:34:20 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-01-19 02:34:20 +0000
commite6a1ebb7c6eb226c28e813f0889c290533e0a8a2 (patch)
treeee1a77d2bc1793be67e7beba09aa2fa99dff4622 /converter/pgm
parentdf9163ee9fc8c86f46e6b6882bf72cefaf7d1975 (diff)
downloadnetpbm-mirror-e6a1ebb7c6eb226c28e813f0889c290533e0a8a2.tar.gz
netpbm-mirror-e6a1ebb7c6eb226c28e813f0889c290533e0a8a2.tar.xz
netpbm-mirror-e6a1ebb7c6eb226c28e813f0889c290533e0a8a2.zip
Fix bug from earlier today
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2386 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/pgm')
-rw-r--r--converter/pgm/sbigtopgm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/converter/pgm/sbigtopgm.c b/converter/pgm/sbigtopgm.c
index 308a7d6d..883e3396 100644
--- a/converter/pgm/sbigtopgm.c
+++ b/converter/pgm/sbigtopgm.c
@@ -178,7 +178,7 @@ readSbigHeader(FILE *              const ifP,
                      (unsigned)(cursor - &buffer[0]));
         }
         *cp = '\0';
-        if (STRSEQ("ST-", cursor)) {
+        if (strneq(cursor, "ST-", 3)) {
             char * const ep = strchr(cursor + 3, ' ');
 
             if (ep != NULL) {
@@ -189,16 +189,16 @@ readSbigHeader(FILE *              const ifP,
             }
         }
         looseCanon(cursor);
-        if (STRSEQ("ST-", cursor)) {
+        if (strneq(cursor, "ST-", 3)) {
             sbigHeaderP->isCompressed = (strstr("compressed", cursor) != NULL);
             gotCompression = true;
-        } else if (STRSEQ("height=", cursor)) {
+        } else if (strneq(cursor, "height=", 7)) {
             sbigHeaderP->rows = atoi(cursor + 7);
             gotHeight = true;
-        } else if (STRSEQ("width=", cursor)) {
+        } else if (strneq(cursor, "width=", 6)) {
             sbigHeaderP->cols = atoi(cursor + 6);
             gotWidth = true;
-        } else if (STRSEQ("sat_level=", cursor)) {
+        } else if (strneq(cursor, "sat_level=", 10)) {
             sbigHeaderP->maxval = atoi(cursor + 10);
         } else if (streq("end", cursor)) {
             endOfHeader = true;