From 55dcf03512b06c209f0390d837f8bf36b45c7400 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 9 Dec 2010 22:23:50 +0800 Subject: memcpy operands are not supposed to overlap * include/string.h (memmove): Add prototype. * i386/i386at/immc.c (immc_cnputc): Replace memcpy with memmove. --- include/string.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/string.h b/include/string.h index b630c04..8059bed 100644 --- a/include/string.h +++ b/include/string.h @@ -30,6 +30,8 @@ extern void *memcpy (void *dest, const void *src, size_t n); +extern void *memmove (void *dest, const void *src, size_t n); + extern int *memcmp (const void *s1, const void *s2, size_t n); extern void *memset (void *s, int c, size_t n); -- cgit v1.2.3