summaryrefslogtreecommitdiff
path: root/udev/udevadm-trigger.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev/udevadm-trigger.c')
-rw-r--r--udev/udevadm-trigger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/udevadm-trigger.c b/udev/udevadm-trigger.c
index 13736378df..e7940ef92d 100644
--- a/udev/udevadm-trigger.c
+++ b/udev/udevadm-trigger.c
@@ -126,7 +126,7 @@ static int pass_to_socket(struct udev *udev, const char *syspath, const char *ac
int fd;
char link_target[UTIL_PATH_SIZE];
int len;
- const char *devpath = syspath[strlen(udev_get_sys_path(udev))];
+ const char *devpath = &syspath[strlen(udev_get_sys_path(udev))];
int err = 0;
if (verbose)