mirror of
https://github.com/ksherlock/profuse.git
synced 2025-01-12 05:30:04 +00:00
git-svn-id: https://profuse.googlecode.com/svn/branches/v2@162 aa027e90-d47c-11dd-86d7-074df07e0730
This commit is contained in:
parent
fbe95823d3
commit
4544a7d649
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user