diff options
Diffstat (limited to 'busybox.c')
-rw-r--r-- | busybox.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 */ |