diff --git a/getty.c b/getty.c index 6e658cd..1c8f236 100644 --- a/getty.c +++ b/getty.c @@ -1,5 +1,6 @@ /* See LICENSE file for copyright and license details. */ #include +#include #include #include #include @@ -24,7 +25,7 @@ main(int argc, char *argv[]) { int fd; struct sigaction sa; - char term[128], logname[128], c; + char term[128], logname[LOGIN_NAME_MAX], c; int i = 0; ssize_t n;