Code

fix string size self-reference bug
authorishmal <ishmal@users.sourceforge.net>
Wed, 7 Nov 2007 20:29:15 +0000 (20:29 +0000)
committerishmal <ishmal@users.sourceforge.net>
Wed, 7 Nov 2007 20:29:15 +0000 (20:29 +0000)
buildtool.cpp

index 94a430da38fcfb06f2f44c389d0e07a985ae5e3b..42c6c3719ab8bfe7f756f3ef8b972c32b5984bc3 100644 (file)
@@ -38,7 +38,7 @@
  *     
  */  
 
-#define BUILDTOOL_VERSION  "BuildTool v0.7.1, 2007 Bob Jamison"
+#define BUILDTOOL_VERSION  "BuildTool v0.7.2, 2007 Bob Jamison"
 
 #include <stdio.h>
 #include <fcntl.h>
@@ -8871,7 +8871,7 @@ static bool parseOptions(int argc, char **argv)
                 }
             else if (arg.size()>2 && sequ(arg, "-D"))
                 {
-                String s = arg.substr(2, s.size());
+                String s = arg.substr(2, arg.size());
                 String name, value;
                 if (!parseProperty(s, name, value))
                    {