projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: memalloc: Drop snd_dma_pci_data() macro
[linux-2.6-block.git]
/
lib
/
string.c
diff --git
a/lib/string.c
b/lib/string.c
index f7bc10da4259f14512631a637fb09b9b98257d97..cd7a10c192109967ebefb4f123a4cf5f9c7b4e3a 100644
(file)
--- a/
lib/string.c
+++ b/
lib/string.c
@@
-183,7
+183,7
@@
ssize_t strscpy(char *dest, const char *src, size_t count)
size_t max = count;
long res = 0;
- if (count == 0)
+ if (count == 0
|| WARN_ON_ONCE(count > INT_MAX)
)
return -E2BIG;
#ifdef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS