git-svn-id: https://profuse.googlecode.com/svn/branches/v2@162 aa027e90-d47c-11dd-86d7-074df07e0730

This commit is contained in:
ksherlock 2009-12-13 00:08:07 +00:00
parent fbe95823d3
commit 4544a7d649
1 changed files with 2 additions and 2 deletions

View File

@ -57,8 +57,8 @@ unsigned Entry::ValidName(const char *cp, unsigned maxLength)
for (unsigned i = 0; ; ++i)
{
unsigned c = cp[i];
if (c == 0) return i - 1;
if (i > maxLength) return 0;
if (c == 0) return i;
if (i >= maxLength) return 0;
switch(c)
{