diff options
-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 7be6f0a87e83..064f6315b1c3 100644 --- a/lib/string.c +++ b/lib/string.c | |||
@@ -470,7 +470,7 @@ EXPORT_SYMBOL(memset); | |||
470 | void *memcpy(void *dest, const void *src, size_t count) | 470 | void *memcpy(void *dest, const void *src, size_t count) |
471 | { | 471 | { |
472 | char *tmp = dest; | 472 | char *tmp = dest; |
473 | char *s = src; | 473 | const char *s = src; |
474 | 474 | ||
475 | while (count--) | 475 | while (count--) |
476 | *tmp++ = *s++; | 476 | *tmp++ = *s++; |