diff options
Diffstat (limited to 'applets/applets.c')
-rw-r--r-- | applets/applets.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/applets/applets.c b/applets/applets.c index 2f67737..56e0d2c 100644 --- a/applets/applets.c +++ b/applets/applets.c @@ -612,14 +612,14 @@ int main(int argc, char **argv) { const char *s; - applet_name = argv[0]; #ifdef BB_NOMMU /* NOMMU re-exec trick sets high-order bit in first byte of name */ - if (applet_name[0] & 0x80) { + if (argv[0][0] & 0x80) { re_execed = 1; - applet_name[0] &= 0x7f; + argv[0][0] &= 0x7f; } #endif + applet_name = argv[0]; if (applet_name[0] == '-') applet_name++; s = strrchr(applet_name, '/'); |