diff options
-rw-r--r-- | udevstart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/udevstart.c b/udevstart.c index 7e19c379a5..5e6606d535 100644 --- a/udevstart.c +++ b/udevstart.c @@ -62,8 +62,8 @@ static void udev_exec(const char *path, const char* subsystem) char nosleep[] = "UDEV_NO_SLEEP=1"; char *env[] = { action, devpath, nosleep, NULL }; - strcpy(action, "DEVPATH=%s"); - strfieldcat(action, path); + strcpy(devpath, "DEVPATH="); + strfieldcat(devpath, path); pid = fork(); switch (pid) { |