From 171ad80fdde7fa3f7d604d5b6effbbaf6bee7702 Mon Sep 17 00:00:00 2001 From: Bob Jamison Date: Wed, 7 Nov 2007 20:29:15 +0000 Subject: fix string size self-reference bug (bzr r4040) --- buildtool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'buildtool.cpp') diff --git a/buildtool.cpp b/buildtool.cpp index 94a430da3..42c6c3719 100644 --- a/buildtool.cpp +++ b/buildtool.cpp @@ -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 #include @@ -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)) { -- cgit v1.2.3