forked from mirror/openmw-tes3mp
Merge remote branch 'corristo/master'
This commit is contained in:
commit
12b7c6f1ac
1 changed files with 4 additions and 4 deletions
|
@ -21,10 +21,10 @@ static size_t mw_strnlen(const char *s, size_t n)
|
||||||
if (strnlen != NULL) {
|
if (strnlen != NULL) {
|
||||||
return strnlen(s, n);
|
return strnlen(s, n);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const char *p = (const char *)memchr(s, 0, n);
|
const char *p = (const char *)memchr(s, 0, n);
|
||||||
return(p ? p-s : n);
|
return(p ? p-s : n);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#define strnlen mw_strnlen
|
#define strnlen mw_strnlen
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue