summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-27 18:05:56 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-27 18:05:56 +0800
commit63a396ef147f1fdc4912a51ef6eacfe118827673 (patch)
treee6caac512cebb1cf6d6f30ca7695999ded87ee21
parentf488d8d2b8f660d9be6e417888d145c85e1e19f1 (diff)
downloadpttbbs-63a396ef147f1fdc4912a51ef6eacfe118827673.tar
pttbbs-63a396ef147f1fdc4912a51ef6eacfe118827673.tar.gz
pttbbs-63a396ef147f1fdc4912a51ef6eacfe118827673.tar.bz2
pttbbs-63a396ef147f1fdc4912a51ef6eacfe118827673.tar.lz
pttbbs-63a396ef147f1fdc4912a51ef6eacfe118827673.tar.xz
pttbbs-63a396ef147f1fdc4912a51ef6eacfe118827673.tar.zst
pttbbs-63a396ef147f1fdc4912a51ef6eacfe118827673.zip
replace memcpy with memmove
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@442 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/menu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pttbbs/mbbsd/menu.c b/pttbbs/mbbsd/menu.c
index 08efc53d..f4d28259 100644
--- a/pttbbs/mbbsd/menu.c
+++ b/pttbbs/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 */