From 4af75e15e0d4f29995d717b14519061807954dff Mon Sep 17 00:00:00 2001 From: sireus Date: Sat, 25 Aug 2012 10:05:09 +0000 Subject: [PATCH] no need for memmove here git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6868 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/tools.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/tools.h b/source/src/tools.h index 63297514..ae21df25 100644 --- a/source/src/tools.h +++ b/source/src/tools.h @@ -849,9 +849,9 @@ template inline void bigswap(T *buf, int len) { if(*(const uchar *)&isl if(isbigendian())\ { \ enet_uint32 big = endianswap(address);\ - memmove(&ip, &big, 4);\ + memcpy(&ip, &big, 4);\ }\ -else memmove(&ip, &address, 4);\ +else memcpy(&ip, &address, 4);\ /* workaround for some C platforms that have these two functions as macros - not used anywhere */ #ifdef getchar