1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 22:45:34 +00:00

Merge remote branch 'corristo/master'

This commit is contained in:
Marc Zinnschlag 2012-03-02 12:11:53 +01:00
commit 12b7c6f1ac

View file

@ -21,10 +21,10 @@ static size_t mw_strnlen(const char *s, size_t n)
if (strnlen != NULL) {
return strnlen(s, n);
}
else {
const char *p = (const char *)memchr(s, 0, n);
return(p ? p-s : n);
}
else {
const char *p = (const char *)memchr(s, 0, n);
return(p ? p-s : n);
}
}
#define strnlen mw_strnlen
#endif