diff options
Diffstat (limited to 'hw/dmx/dmxinit.c')
-rw-r--r-- | hw/dmx/dmxinit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/dmx/dmxinit.c b/hw/dmx/dmxinit.c index 165476c5f..b950c50a4 100644 --- a/hw/dmx/dmxinit.c +++ b/hw/dmx/dmxinit.c @@ -138,7 +138,7 @@ static int dmxErrorHandler(Display *dpy, XErrorEvent *ev) for (ext = dpy->ext_procs; ext && ext->codes.major_opcode != ev->request_code; ext = ext->next); - if (ext) strncpy(buf, ext->name, sizeof(buf)); + if (ext) strlcpy(buf, ext->name, sizeof(buf)); else buf[0] = '\0'; } dmxLog(dmxWarning, " Major opcode: %d (%s)\n", |