mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Fix build break
This commit is contained in:
parent
425c0559a5
commit
124d66dcbd
|
@ -930,9 +930,9 @@ static size_t xstrsncpy(char *restrict dst, const char *restrict src, size_t n)
|
||||||
static inline size_t xstrlen(const char *s)
|
static inline size_t xstrlen(const char *s)
|
||||||
{
|
{
|
||||||
#if !defined(__GLIBC__)
|
#if !defined(__GLIBC__)
|
||||||
return strlen(s);
|
return strlen(s); // NOLINT
|
||||||
#else
|
#else
|
||||||
return (char *)rawmemchr(s, '\0') - s;
|
return (char *)rawmemchr(s, '\0') - s; // NOLINT
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue