diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/string.c b/lib/string.c index f7bc10da4259..cd7a10c19210 100644 --- a/lib/string.c +++ b/lib/string.c | |||
@@ -183,7 +183,7 @@ ssize_t strscpy(char *dest, const char *src, size_t count) | |||
183 | size_t max = count; | 183 | size_t max = count; |
184 | long res = 0; | 184 | long res = 0; |
185 | 185 | ||
186 | if (count == 0) | 186 | if (count == 0 || WARN_ON_ONCE(count > INT_MAX)) |
187 | return -E2BIG; | 187 | return -E2BIG; |
188 | 188 | ||
189 | #ifdef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS | 189 | #ifdef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS |