From 3801a36ec98372fccdd7955fb2f3e90db05c7049 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 4 Mar 2025 14:04:55 +0100 Subject: [PATCH] emuWheel: use strdup() instead of xstrdup() Never passing NULL here, so no need to call xstrdup() / Xstrdup() Signed-off-by: Enrico Weigelt, metux IT consult --- src/emuWheel.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/emuWheel.c b/src/emuWheel.c index 2b66ade..e7fb867 100644 --- a/src/emuWheel.c +++ b/src/emuWheel.c @@ -210,9 +210,7 @@ EvdevWheelEmuHandleButtonMap(InputInfoPtr pInfo, WheelAxisPtr pAxis, ((up_button > 0) && (up_button <= EVDEV_MAXBUTTONS)) && ((down_button > 0) && (down_button <= EVDEV_MAXBUTTONS))) { - /* Use xstrdup to allocate a string for us */ - msg = xstrdup("buttons XX and YY"); - + msg = strdup("buttons XX and YY"); if (msg) sprintf(msg, "buttons %d and %d", up_button, down_button);