From: ThorstenB Date: Wed, 22 Jun 2011 07:16:27 +0000 (+0200) Subject: Bad boundary check. Add missing parentheses. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=76fcad0a0bd10ff9280c6e60ab53bc9fc449e84c;p=simgear.git Bad boundary check. Add missing parentheses. --- diff --git a/simgear/scene/tsync/terrasync.cxx b/simgear/scene/tsync/terrasync.cxx index 9a35afce..9f8ea8ef 100644 --- a/simgear/scene/tsync/terrasync.cxx +++ b/simgear/scene/tsync/terrasync.cxx @@ -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--; }