summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dmx.c b/src/dmx.c
index f7ecece..33aa87b 100644
--- a/src/dmx.c
+++ b/src/dmx.c
@@ -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);
}