From 12ff0c3777f65014ade1e6db0393bcbb22581754 Mon Sep 17 00:00:00 2001 From: marha Date: Fri, 30 Apr 2010 07:43:12 +0000 Subject: Make sure you are not using a subscript out of the string. --- tools/mhmake/src/fileinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/mhmake') diff --git a/tools/mhmake/src/fileinfo.cpp b/tools/mhmake/src/fileinfo.cpp index e0feb0a79..9999c36cd 100644 --- a/tools/mhmake/src/fileinfo.cpp +++ b/tools/mhmake/src/fileinfo.cpp @@ -302,7 +302,7 @@ const refptr &GetFileInfo(const string &NameIn,const refptr //Only concatenate if szName is not already a full name #ifdef WIN32 - if (!Name.empty() && Name[1]!=':') + if (Name.length()>1 && Name[1]!=':') #endif { if (Name[0]!=OSPATHSEP) -- cgit v1.2.3