From 94361cbba7f866144691f6f5e9251a550e0e0cb8 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Mon, 28 May 2007 13:54:47 +0300 Subject: [PATCH] XFree86: Input: Perform case-insensitive comparisons on option names --- hw/xfree86/common/xf86Xinput.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c index 2d0a37674..5eede084d 100644 --- a/hw/xfree86/common/xf86Xinput.c +++ b/hw/xfree86/common/xf86Xinput.c @@ -329,7 +329,7 @@ NewInputDeviceRequest (InputOption *options, DeviceIntPtr *pdev) return BadAlloc; for (option = options; option; option = option->next) { - if (strcmp(option->key, "driver") == 0) { + if (strcasecmp(option->key, "driver") == 0) { if (idev->driver) { rval = BadRequest; goto unwind; @@ -352,8 +352,8 @@ NewInputDeviceRequest (InputOption *options, DeviceIntPtr *pdev) goto unwind; } } - if (strcmp(option->key, "name") == 0 || - strcmp(option->key, "identifier") == 0) { + if (strcasecmp(option->key, "name") == 0 || + strcasecmp(option->key, "identifier") == 0) { if (idev->identifier) { rval = BadRequest; goto unwind;