diff options
Diffstat (limited to 'applets')
-rw-r--r-- | applets/busybox.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/applets/busybox.c b/applets/busybox.c index badd53d79..41b6069ed 100644 --- a/applets/busybox.c +++ b/applets/busybox.c | |||
@@ -37,10 +37,7 @@ typedef int (*__link_f)(const char *, const char *); | |||
37 | */ | 37 | */ |
38 | static char *busybox_fullpath() | 38 | static char *busybox_fullpath() |
39 | { | 39 | { |
40 | char proc[256]; | 40 | return xreadlink("/proc/self/exe"); |
41 | |||
42 | sprintf(proc, "/proc/%d/exe", getpid()); | ||
43 | return xreadlink(proc); | ||
44 | } | 41 | } |
45 | 42 | ||
46 | /* create (sym)links for each applet */ | 43 | /* create (sym)links for each applet */ |