commit | 9e8f6d63c47384597d866fb7cd798a48c5c1835f | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Feb 03 07:36:00 2020 -0700 |
committer | Simon Glass <sjg@chromium.org> | Wed Feb 05 19:33:46 2020 -0700 |
tree | 40c925bf3ac2a36d66c31997698ad51647f8ab61 | |
parent | 2bd64715a75797265d4224e61517d3d312121984 [diff] [blame] |
string: Allow arch override of strndup() also At present architectures can override strdup() but not strndup(). Use the same option for both. Signed-off-by: Simon Glass <sjg@chromium.org>
diff --git a/lib/string.c b/lib/string.c index 9b779dd..ae7835f 100644 --- a/lib/string.c +++ b/lib/string.c
@@ -324,7 +324,6 @@ strcpy (new, s); return new; } -#endif char * strndup(const char *s, size_t n) { @@ -348,6 +347,7 @@ return new; } +#endif #ifndef __HAVE_ARCH_STRSPN /**