From 0a468ea1d8e39db6e56d90709ed934c392dd09ee Mon Sep 17 00:00:00 2001 From: Yunmi Ha Date: Thu, 6 Feb 2020 19:37:10 +0900 Subject: [PATCH] standard : fix svace issue Change-Id: I04decbdb6ac5abc876e266c9a7abd08a8ec2b443 Signed-off-by: Yunmi Ha --- src/haptic/standard.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/haptic/standard.c b/src/haptic/standard.c index d27139a..51d7f2a 100644 --- a/src/haptic/standard.c +++ b/src/haptic/standard.c @@ -195,6 +195,7 @@ static int ff_find_device(void) if (test_bit(FF_RUMBLE, features)) { memcpy(ff_path, ev_path, strlen(ev_path)); + ff_path[strlen(ev_path)] = '\0'; close(fd); closedir(dir); return 0; -- 2.7.4