SCCS-vsn: lib/libc/gen/getlogin.c 5.8
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)getlogin.c 5.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)getlogin.c 5.8 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
#include <pwd.h>
#include <utmp.h>
#include <stdio.h>
#include <pwd.h>
#include <utmp.h>
- static char logname[UT_NAMESIZE+1];
+ static char logname[MAXLOGNAME + 1];
if (_logname_valid == 0) {
if (_getlogin(logname, sizeof(logname) - 1) < 0)
if (_logname_valid == 0) {
if (_getlogin(logname, sizeof(logname) - 1) < 0)