to xcalloc() where was intented in code (two arguments to
xmalloc).
* ksu.h: Provide full prototypes for xmalloc(), xrealloc(),
xcalloc(), and xstrdup().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13510
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-06-26 Ezra Peisach <epeisach@mit.edu>
+
+ * authorization.c (find_first_cmd_that_exists): Change xmalloc()
+ to xcalloc() where was intented in code (two arguments to xmalloc).
+
+ * ksu.h: Provide full prototypes for xmalloc(), xrealloc(),
+ xcalloc(), and xstrdup().
+
2001-06-21 Ezra Peisach <epeisach@mit.edu>
* main.c (get_params): Change optind to optindex to prevent
}
if (retbool == FALSE ){
- err = (char *) xmalloc((80 + (max_ln+2)*i) ,sizeof(char));
+ err = (char *) xcalloc((80 + (max_ln+2)*i) ,sizeof(char));
strcpy(err,"Error: not found -> ");
for(j= 0; j < i; j ++){
strcat(err, " ");
extern char *krb5_lname_file; /* Note: print this out just be sure
that it gets set */
-extern void *xmalloc (), *xrealloc (), *xcalloc();
-extern char *xstrdup ();
+extern void *xmalloc PROTOTYPE((size_t)),
+ *xrealloc PROTOTYPE((void *, size_t)),
+ *xcalloc PROTOTYPE((size_t, size_t));
+extern char *xstrdup PROTOTYPE((const char *));
#ifndef HAVE_UNSETENV
void unsetenv PROTOTYPE((char *));