From 67cb4d6a1995e958ed46051f3ce26e266d0e8c75 Mon Sep 17 00:00:00 2001 From: kcwu Date: Sat, 27 Jul 2002 10:05:56 +0000 Subject: replace memcpy with memmove git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@442 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mbbsd') diff --git a/mbbsd/menu.c b/mbbsd/menu.c index 08efc53d..f4d28259 100644 --- a/mbbsd/menu.c +++ b/mbbsd/menu.c @@ -1,4 +1,4 @@ -/* $Id: menu.c,v 1.16 2002/07/22 19:02:00 in2 Exp $ */ +/* $Id: menu.c,v 1.17 2002/07/27 10:05:56 kcwu Exp $ */ #include "bbs.h" /* help & menu processring */ @@ -130,7 +130,7 @@ movie(int i) } while (i == 0); } - memcpy(history, &history[1], SHM->max_history * sizeof(short)); + memmove(history, &history[1], SHM->max_history * sizeof(short)); history[SHM->max_history] = j = i; if (i == 999) /* Goodbye my friend */ -- cgit v1.2.3