aboutsummaryrefslogtreecommitdiff
path: root/toys/lsb
diff options
context:
space:
mode:
Diffstat (limited to 'toys/lsb')
-rw-r--r--toys/lsb/su.c2
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");