]> git.mxchange.org Git - simgear.git/commitdiff
Bad boundary check. Add missing parentheses.
authorThorstenB <brehmt@gmail.com>
Wed, 22 Jun 2011 07:16:27 +0000 (09:16 +0200)
committerThorstenB <brehmt@gmail.com>
Wed, 22 Jun 2011 07:16:27 +0000 (09:16 +0200)
simgear/scene/tsync/terrasync.cxx

index 9a35afcef2cdf9ed67a14ed9945183febb2f8496..9f8ea8ef72a08cc1bd1f600948d4cdc2a6685434 100644 (file)
@@ -104,7 +104,7 @@ string stripPath(string path)
     path = simgear::strutils::strip(path);
     int slen = path.length();
     while ((slen>0)&&
-            (path[slen-1]=='/')||(path[slen-1]=='\\'))
+            ((path[slen-1]=='/')||(path[slen-1]=='\\')))
     {
         slen--;
     }