summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-04-02 16:58:57 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:14 -0700
commit5df33ccd8e03043597ff2b1777bbf5219e7080e3 (patch)
treea68d62e9c91bcc1d5e899ff25d7b35e0caec910b
parent08b5da6a030f86810c100e465d9bfaa5113ba34d (diff)
[PATCH] udevstart fix
Sorry, udevstart needs a small cleanup after my recent copy/pastes.
-rw-r--r--udevstart.c4
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) {