diff options
author | Deron Johnson <deron.johnson@sun.com> | 2005-02-17 22:44:28 +0000 |
---|---|---|
committer | Deron Johnson <deron.johnson@sun.com> | 2005-02-17 22:44:28 +0000 |
commit | 4597a30ce2cbef8d469169b9eb411e1be5cefcbc (patch) | |
tree | d1a15d7fd020224cd135ddcc611b3022afe2665e | |
parent | 90b1782cf132d4d3a753e4643fe8c398cecbb07b (diff) |
Joined with branch XORG-6_8_2.lg3d-rel-0-6-2
-rw-r--r-- | src/dmx.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -424,7 +424,7 @@ Bool DMXAddScreen(Display *dpy, const char *displayName, unsigned int mask, if (length) { char *buffer = Xmalloc(paddedLength); memset(buffer, 0, paddedLength); - strcpy(buffer, displayName); + memcpy(buffer, displayName, length); Data32(dpy, buffer, paddedLength); Xfree(buffer); } @@ -730,7 +730,7 @@ Bool DMXAddInput(Display *dpy, unsigned int mask, DMXInputAttributes *attr, if (length) { char *buffer = Xmalloc(paddedLength); memset(buffer, 0, paddedLength); - strcpy(buffer, attr->name); + memcpy(buffer, attr->name, paddedLength); Data32(dpy, buffer, paddedLength); Xfree(buffer); } |