aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/GL/glx/unpack.h
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-02-17 13:35:48 +0000
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-12-14 10:40:32 +0100
commita6ffabda67a703f6ba7091db9ad8eed623bc4347 (patch)
tree92b8dc92fd9d7fa253b882006bebf166b04f66b6 /nx-X11/programs/Xserver/GL/glx/unpack.h
parent16fbdb2a8d4f8d6c2f3c45829e181109b5991a34 (diff)
downloadnx-libs-a6ffabda67a703f6ba7091db9ad8eed623bc4347.tar.gz
nx-libs-a6ffabda67a703f6ba7091db9ad8eed623bc4347.tar.bz2
nx-libs-a6ffabda67a703f6ba7091db9ad8eed623bc4347.zip
glx: warning fixes
commit 63ccaec2c39f4b5742383472c951ee2cd35c9e14 Author: Adam Jackson <ajax@redhat.com> Date: Tue Oct 19 11:59:23 2010 -0400 render2.c: In function ‘__glXDisp_Map2d’: render2.c:127: warning: ‘u1’ may be used uninitialized in this function render2.c: In function ‘__glXDisp_Map1d’: render2.c:90: warning: ‘u1’ may be used uninitialized in this function Remove unnecessary test, and change memcpy to memmove as all users were doing overlapping copies. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Backported-to-NX-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Diffstat (limited to 'nx-X11/programs/Xserver/GL/glx/unpack.h')
-rw-r--r--nx-X11/programs/Xserver/GL/glx/unpack.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/GL/glx/unpack.h b/nx-X11/programs/Xserver/GL/glx/unpack.h
index 7d84ff575..9554ba4b9 100644
--- a/nx-X11/programs/Xserver/GL/glx/unpack.h
+++ b/nx-X11/programs/Xserver/GL/glx/unpack.h
@@ -52,7 +52,7 @@
** Fetch a double from potentially unaligned memory.
*/
#ifdef __GLX_ALIGN64
-#define __GLX_MEM_COPY(dst,src,n) if (src && dst) memcpy(dst,src,n)
+#define __GLX_MEM_COPY(dst,src,n) memmove(dst,src,n)
#define __GLX_GET_DOUBLE(dst,src) __GLX_MEM_COPY(&dst,src,8)
#else
#define __GLX_GET_DOUBLE(dst,src) (dst) = *((GLdouble*)(src))