diff options
-rw-r--r-- | i386/i386at/immc.c | 2 | ||||
-rw-r--r-- | include/string.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/i386/i386at/immc.c b/i386/i386at/immc.c index e457162..db64620 100644 --- a/i386/i386at/immc.c +++ b/i386/i386at/immc.c @@ -49,7 +49,7 @@ immc_cnputc(unsigned char c) } else if (c == '\n') { - memcpy(0xb8000, 0xb8000+80*2, 80*2*24); + memmove(0xb8000, 0xb8000+80*2, 80*2*24); memset(0xb8000+80*2*24, 0, 80*2); ofs = 0; } 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); |