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