Fix off by one error in length of the string.
Submitted by: jhay
This commit is contained in:
parent
ca1ed8272e
commit
c38f335208
@ -64,5 +64,5 @@ p_strlen(const char *buffer)
|
||||
const char *ptr = buffer;
|
||||
while (*ptr++)
|
||||
continue;
|
||||
return (ptr - buffer);
|
||||
return (ptr - buffer - 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user