about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--include/string.h2
-rw-r--r--src/string/mempcpy.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/string.h b/include/string.h
index 94188bc0..f95a15c9 100644
--- a/include/string.h
+++ b/include/string.h
@@ -75,7 +75,7 @@ char *strchrnul(const char *, int);
 char *strcasestr(const char *, const char *);
 char *strsep(char **, const char *);
 void *memrchr(const void *, int, size_t);
-void *mempcpy(void *, void *, size_t);
+void *mempcpy(void *, const void *, size_t);
 #endif
 
 #ifdef __cplusplus
diff --git a/src/string/mempcpy.c b/src/string/mempcpy.c
index e54251cd..1b323f1e 100644
--- a/src/string/mempcpy.c
+++ b/src/string/mempcpy.c
@@ -1,6 +1,6 @@
 #include <string.h>
 
-void *mempcpy(void *dest, void *src, size_t n)
+void *mempcpy(void *dest, const void *src, size_t n)
 {
 	memcpy(dest, src, n);
 	return (char *)dest + n;