summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2005-02-11 10:53:09 +0000
committerAlexander Gottwald <alexander.gottwald@s1999.tu-chemnitz.de>2005-02-11 10:53:09 +0000
commit063c65a2296134d8dec8555fed6d32e441f5515d (patch)
treed1a15d7fd020224cd135ddcc611b3022afe2665e
parentf2a2fcf741c93628466af024c16ad559726a65bf (diff)
Import changes from XORG-6.8.2CYGWIN-6_8_2-MERGE
-rw-r--r--src/dmx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dmx.c b/src/dmx.c
index 0f9c099..33aa87b 100644
--- a/src/dmx.c
+++ b/src/dmx.c
@@ -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);
}