diff options
-rw-r--r-- | lib/libutil/login_fbtab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libutil/login_fbtab.c b/lib/libutil/login_fbtab.c index 23735b9de5e..ad40b06f59d 100644 --- a/lib/libutil/login_fbtab.c +++ b/lib/libutil/login_fbtab.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login_fbtab.c,v 1.14 2007/09/09 05:46:17 deraadt Exp $ */ +/* $OpenBSD: login_fbtab.c,v 1.15 2015/08/20 21:34:04 deraadt Exp $ */ /************************************************************************ * Copyright 1995 by Wietse Venema. All rights reserved. Some individual @@ -96,7 +96,7 @@ login_fbtab(const char *tty, uid_t uid, gid_t gid) if (buf[len - 1] == '\n') buf[len - 1] = '\0'; else { - if ((tbuf = (char *)malloc(len + 1)) == NULL) + if ((tbuf = malloc(len + 1)) == NULL) break; memcpy(tbuf, buf, len); tbuf[len] = '\0'; |