diff options
Diffstat (limited to 'toys')
-rw-r--r-- | toys/lsb/su.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/lsb/su.c b/toys/lsb/su.c index a92705c5..268ddf75 100644 --- a/toys/lsb/su.c +++ b/toys/lsb/su.c @@ -71,7 +71,7 @@ void su_main() snapshot_env("COLORTERM"), snapshot_env("XAUTHORITY")}; clearenv(); - for (i=0; i < sizeof(stuff)/sizeof(char *); i++) putenv(stuff[i]); + for (i=0; i < ARRAY_LEN(stuff); i++) if (stuff[i]) putenv(stuff[i]); *(argv++) = "-l"; xchdir(up->pw_dir); } else unsetenv("IFS"); |