summaryrefslogtreecommitdiff
path: root/src/cppunit/TestPath.cpp
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2004-06-17 18:03:15 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2004-06-17 18:03:15 +0000
commitf29095da66d810684c4e533ad506b109878e874d (patch)
tree2320fb0942a8e01b20e02ecf66dd23f9975948b9 /src/cppunit/TestPath.cpp
parent3c055ba1f3974f897500decae49f925bb7385f49 (diff)
downloadcppunit-f29095da66d810684c4e533ad506b109878e874d.tar.gz
src/cppunit/TestPath.cpp: bug #938753, array bound read in
splitPathString() with substr if an empty string is passed.
Diffstat (limited to 'src/cppunit/TestPath.cpp')
-rw-r--r--src/cppunit/TestPath.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cppunit/TestPath.cpp b/src/cppunit/TestPath.cpp
index 6a73b43..5ff1466 100644
--- a/src/cppunit/TestPath.cpp
+++ b/src/cppunit/TestPath.cpp
@@ -226,7 +226,7 @@ bool
TestPath::splitPathString( const std::string &pathAsString,
PathTestNames &testNames )
{
- bool isRelative = pathAsString.length() && pathAsString[0] != "/";
+ bool isRelative = pathAsString.length() && pathAsString[0] != '/';
int index = (isRelative ? 0 : 1);
while ( true )