aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
Diffstat (limited to 'applets')
-rw-r--r--applets/busybox.c5
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 *);
*/
static char *busybox_fullpath()
{
- char proc[256];
-
- sprintf(proc, "/proc/%d/exe", getpid());
- return xreadlink(proc);
+ return xreadlink("/proc/self/exe");
}
/* create (sym)links for each applet */