]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Fix GCC-7 compiler error
authorPatrice Fournier <patrice.fournier@ifax.com>
Mon, 9 Oct 2017 20:06:36 +0000 (16:06 -0400)
committerPatrice Fournier <patrice.fournier@ifax.com>
Tue, 18 Sep 2018 19:18:38 +0000 (15:18 -0400)
libhylafax/FaxRecvInfo.c++

index 91cfc36598be79494677f920ba546ed97423fb03..339592c47ac669ec54e7fdd431af70b729ab0b62 100644 (file)
@@ -112,7 +112,7 @@ FaxRecvInfo::decode(const char* cp)
     if (cp == NULL || cp[1] != ',' || cp[2] != '"')
        return (false);
     u_int i = 0;
-    while (cp+2 != '\0') {
+    while (cp[2] != '\0') {
        callid[i] = cp+3;               // +1 for "/+1 for ,/+1 for "
        if (*cp == '\"') break;
        callid[i].resize(callid[i].next(0,'"'));