diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-07-27 18:05:56 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-07-27 18:05:56 +0800 |
commit | 67cb4d6a1995e958ed46051f3ce26e266d0e8c75 (patch) | |
tree | 9a3b875dbb97405e28a099e1fce7909ca356dc99 | |
parent | 541a643522794a01b93b161336d9a902564f51aa (diff) | |
download | pttbbs-67cb4d6a1995e958ed46051f3ce26e266d0e8c75.tar pttbbs-67cb4d6a1995e958ed46051f3ce26e266d0e8c75.tar.gz pttbbs-67cb4d6a1995e958ed46051f3ce26e266d0e8c75.tar.bz2 pttbbs-67cb4d6a1995e958ed46051f3ce26e266d0e8c75.tar.lz pttbbs-67cb4d6a1995e958ed46051f3ce26e266d0e8c75.tar.xz pttbbs-67cb4d6a1995e958ed46051f3ce26e266d0e8c75.tar.zst pttbbs-67cb4d6a1995e958ed46051f3ce26e266d0e8c75.zip |
replace memcpy with memmove
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@442 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |