diff options
author | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2005-02-11 10:53:09 +0000 |
---|---|---|
committer | Alexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de> | 2005-02-11 10:53:09 +0000 |
commit | 063c65a2296134d8dec8555fed6d32e441f5515d (patch) | |
tree | d1a15d7fd020224cd135ddcc611b3022afe2665e | |
parent | f2a2fcf741c93628466af024c16ad559726a65bf (diff) |
Import changes from XORG-6.8.2CYGWIN-6_8_2-MERGE
-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); } |