]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
[Bug 167] Class2Recv has TSI read errors
authorDarren Nickerson <darren.nickerson@ifax.com>
Mon, 16 Jul 2001 03:56:30 +0000 (03:56 +0000)
committerDarren Nickerson <darren.nickerson@ifax.com>
Mon, 16 Jul 2001 03:56:30 +0000 (03:56 +0000)
Applied Lee's patch with the improved stripQuotes function

faxd/Class2.c++

index 646bc73494e21089c15b44b3e9be162a6ec66b67..b55edb491dba09977fc5d9e529b7df0876c20ac3 100644 (file)
@@ -413,11 +413,10 @@ Class2Modem::stripQuotes(const char* cp)
 {
     fxStr s(cp);
     u_int pos = s.next(0, '"');
-    if (pos != s.length())
-      s.remove(0,pos+1);
-    pos = s.next(0, '"');
-    if (pos != s.length())
-      s.remove(pos, s.length()-pos);
+    while (pos != s.length()) {
+       s.remove(pos,1);
+       pos = s.next(0,'"');
+    }
     return (s);
 }