aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-04-30 07:43:12 +0000
committermarha <marha@users.sourceforge.net>2010-04-30 07:43:12 +0000
commit12ff0c3777f65014ade1e6db0393bcbb22581754 (patch)
tree389fc96017061d73a4edc9612a6939666b63a809
parentabcc3708cbd95a0792de9da7afe10b356554b7cf (diff)
downloadvcxsrv-12ff0c3777f65014ade1e6db0393bcbb22581754.tar.gz
vcxsrv-12ff0c3777f65014ade1e6db0393bcbb22581754.tar.bz2
vcxsrv-12ff0c3777f65014ade1e6db0393bcbb22581754.zip
Make sure you are not using a subscript out of the string.
-rw-r--r--tools/mhmake/src/fileinfo.cpp2
1 files changed, 1 insertions, 1 deletions
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<fileinfo> &GetFileInfo(const string &NameIn,const refptr<fileinfo>
//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)