mirror of
https://gitlab.com/bztsrc/posix-uefi.git
synced 2024-12-27 07:45:08 +01:00
Fixed issue #54
This commit is contained in:
parent
dab4304937
commit
ab6f1c382c
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ char_t *strncat(char_t *dst, const char_t *src, size_t n)
|
|||
|
||||
int strncmp(const char_t *s1, const char_t *s2, size_t n)
|
||||
{
|
||||
const char_t *e = s1+n;
|
||||
const char_t *e = s1+n-1;
|
||||
if(s1 && s2 && s1!=s2 && n>0) {
|
||||
while(s1<e && *s1 && *s1==*s2){s1++;s2++;}
|
||||
return *s1-*s2;
|
||||
|
|
Loading…
Reference in a new issue