From: Chris Provenzano Date: Mon, 27 Mar 1995 14:46:25 +0000 (+0000) Subject: * kpasswd.c: Cast malloc() return value to shut compiler up X-Git-Tag: krb5-1.0-beta5~449 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=378b87525f7a4e621b1dff364d43aad0d6480480;p=krb5.git * kpasswd.c: Cast malloc() return value to shut compiler up git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5261 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/kpasswd/ChangeLog b/src/kadmin/kpasswd/ChangeLog index 257e665a8..506f7ffbe 100644 --- a/src/kadmin/kpasswd/ChangeLog +++ b/src/kadmin/kpasswd/ChangeLog @@ -1,7 +1,10 @@ +Fri Mar 17 15:36:07 1995 Chris Provenzano (proven@mit.edu) + + * kpasswd.c: Cast malloc() return value to shut compiler up. Fri Mar 10 11:09:34 1995 Chris Provenzano (proven@mit.edu) - * kpasswd.c Use new calling convention for krb5_sendauth(), + * kpasswd.c: Use new calling convention for krb5_sendauth(), krb5_mk_priv(), and krb5_rd_priv(). Thu Mar 2 12:25:29 1995 Theodore Y. Ts'o @@ -19,7 +22,7 @@ Tue Feb 28 02:21:41 1995 John Gilmore (gnu at toad.com) Tue Feb 14 15:30:55 1995 Chris Provenzano (proven@mit.edu) - * kpasswd.c Call krb5_sendauth(), krb5_get_credentials() + * kpasswd.c: Call krb5_sendauth(), krb5_get_credentials() with new calling convention. Fri Feb 10 17:48:05 1995 Theodore Y. Ts'o diff --git a/src/kadmin/kpasswd/kpasswd.c b/src/kadmin/kpasswd/kpasswd.c index 9aadb6b83..4dc7173f7 100644 --- a/src/kadmin/kpasswd/kpasswd.c +++ b/src/kadmin/kpasswd/kpasswd.c @@ -459,7 +459,7 @@ main(argc,argv) rd_priv_resp.oper_code = msg_data.data[1]; rd_priv_resp.retn_code = msg_data.data[2]; if (msg_data.length > 3 && msg_data.data[3]) { - rd_priv_resp.message = malloc(msg_data.length - 2); + rd_priv_resp.message = (char *)malloc(msg_data.length - 2); if (rd_priv_resp.message) { memcpy(rd_priv_resp.message, msg_data.data + 3, msg_data.length - 3);