]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
FaxClient: Apparently <modem>@ is used and common
authorAidan Van Dyk <aidan@ifax.com>
Fri, 22 May 2009 19:53:19 +0000 (19:53 +0000)
committerPatrice Fournier <pfournier@ifax.com>
Fri, 31 Jul 2009 16:08:46 +0000 (12:08 -0400)
At least, we shouldn't segfault on it.
(cherry picked from commit ad4574469b885952423711080c77e7ac31c0c743)

libhylafax/FaxClient.c++

index c0c9be00be8aad9ffaaa8699e74daec06af97a47..84184e6401c5c6d2133f39b44b1747a81ad14b0d 100644 (file)
@@ -155,7 +155,7 @@ FaxClient::setupHostModem(const fxStr& s)
     } else
        host = s;
 
-    if (host[0] == '[')
+    if (host.length() && host[0] == '[')
     {
        host.remove(0,1);
        pos = host.next(0,']');