summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/login/login.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c
index e6dc807..967463c 100644
--- a/usr.bin/login/login.c
+++ b/usr.bin/login/login.c
@@ -766,7 +766,7 @@ getloginname()
if (p < nbuf + (NBUFSIZ - 1))
*p++ = ch;
}
- if (p > nbuf)
+ if (p > nbuf) {
if (nbuf[0] == '-')
(void)fprintf(stderr,
"login names may not start with '-'.\n");
@@ -775,6 +775,7 @@ getloginname()
username = nbuf;
break;
}
+ }
}
}
OpenPOWER on IntegriCloud