diff options
Diffstat (limited to 'string/strcspn.c')
-rw-r--r-- | string/strcspn.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/string/strcspn.c b/string/strcspn.c index c535dd1..0e01193 100644 --- a/string/strcspn.c +++ b/string/strcspn.c @@ -17,6 +17,7 @@ #include <string.h> #include <stdint.h> +#include <libc-internal.h> #undef strcspn @@ -52,7 +53,7 @@ STRCSPN (const char *str, const char *reject) if (p[s[2]]) return 2; if (p[s[3]]) return 3; - s = (unsigned char *) ((uintptr_t)(s) & ~3); + s = (unsigned char *) PTR_ALIGN_DOWN (s, 4); unsigned int c0, c1, c2, c3; do |