standard : fix svace issue
[platform/core/system/feedbackd.git] / src / haptic / standard.c
index d27139a..51d7f2a 100644 (file)
@@ -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;