chiark / gitweb /
[PATCH] remove compiler warning from udevd.c
[elogind.git] / udevstart.c
index 7e19c379a503ed8ff7f2885dd419ffd236f3157b..5e6606d535ac4fc5de658a3f3c5b2f08ffb35ee0 100644 (file)
@@ -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) {