From c2feb81bea9f8392142346d84fc8c791db7d7a6b Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Thu, 20 Aug 2015 21:34:04 +0000 Subject: [PATCH] remove cast of malloc(), since stdlib.h is included --- src/lib/libutil/login_fbtab.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/libutil/login_fbtab.c b/src/lib/libutil/login_fbtab.c index 23735b9d..ad40b06f 100644 --- a/src/lib/libutil/login_fbtab.c +++ b/src/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';