Fix off by one error in length of the string.

Submitted by: jhay
This commit is contained in:
imp 2007-03-28 21:12:43 +00:00
parent ca1ed8272e
commit c38f335208

View File

@ -64,5 +64,5 @@ p_strlen(const char *buffer)
const char *ptr = buffer;
while (*ptr++)
continue;
return (ptr - buffer);
return (ptr - buffer - 1);
}