lib: vdso: Remove CROSS_COMPILE_COMPAT_VDSO
[linux-2.6-microblaze.git] / lib / string.c
index f7bc10d..cd7a10c 100644 (file)
@@ -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