aboutsummaryrefslogtreecommitdiff
path: root/busybox.c
diff options
context:
space:
mode:
Diffstat (limited to 'busybox.c')
-rw-r--r--busybox.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/busybox.c b/busybox.c
index badd53d79..41b6069ed 100644
--- a/busybox.c
+++ b/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 */