From: Ezra Peisach Date: Thu, 7 Jun 2001 17:59:39 +0000 (+0000) Subject: * request_tbl.c (ss_add_request_table): Do not cast argument to X-Git-Tag: krb5-1.3-alpha1~1464 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ee24c380dd049623efe2b9377a2e9afefa0f747c;p=krb5.git * request_tbl.c (ss_add_request_table): Do not cast argument to realloc() to char *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13291 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/ss/ChangeLog b/src/util/ss/ChangeLog index 60a9ac1c6..54848b691 100644 --- a/src/util/ss/ChangeLog +++ b/src/util/ss/ChangeLog @@ -1,3 +1,8 @@ +2001-06-07 Ezra Peisach + + * request_tbl.c (ss_add_request_table): Do not cast argument to + realloc() to char *. + 2001-04-17 Ken Raeburn * Makefile.in (unixmac): Target deleted. diff --git a/src/util/ss/request_tbl.c b/src/util/ss/request_tbl.c index 6404b5d6b..a9e751e31 100644 --- a/src/util/ss/request_tbl.c +++ b/src/util/ss/request_tbl.c @@ -24,7 +24,7 @@ ss_add_request_table(sci_idx, rqtbl_ptr, position, code_ptr) ; /* size == C subscript of NULL == #elements */ size += 2; /* new element, and NULL */ - info->rqt_tables = (ssrt **)realloc((char *)info->rqt_tables, + info->rqt_tables = (ssrt **)realloc(info->rqt_tables, (unsigned)size*sizeof(ssrt)); if (info->rqt_tables == (ssrt **)NULL) { *code_ptr = errno;