From 61b007a07638ea59d081936e144e76c5a46ccf7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Fri, 29 Aug 2014 20:30:56 +0200 Subject: [PATCH] serial_mouse: fix string length --- src/add-ons/input_server/devices/serial_mouse/SerialMouse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-ons/input_server/devices/serial_mouse/SerialMouse.cpp b/src/add-ons/input_server/devices/serial_mouse/SerialMouse.cpp index a2ef2e7bb4..4155aa7605 100644 --- a/src/add-ons/input_server/devices/serial_mouse/SerialMouse.cpp +++ b/src/add-ons/input_server/devices/serial_mouse/SerialMouse.cpp @@ -117,8 +117,8 @@ SerialMouse::IsMousePresent() // Skip internal modem (pctel, lucent or trimodem drivers). // previously I checked only for != "pctel", now for == "serial#" - if (strncmp(dev_name, "serial", 5) != 0 - && strncmp(dev_name, "pc_serial", 8) != 0) + if (strncmp(dev_name, "serial", 6) != 0 + && strncmp(dev_name, "pc_serial", 9) != 0) continue; if (fSerialPort->Open(dev_name) <= 0) {