From: Todd C. Miller Date: Tue, 30 Nov 1993 18:37:37 +0000 (+0000) Subject: no longer assume malloc returns a char * X-Git-Tag: SUDO_1_3_0~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70ba02c3c8a978596a8c34c2a0e569bd97d588be;p=sudo no longer assume malloc returns a char * --- diff --git a/sudo.c b/sudo.c index 85da4175f..64e75c1e2 100644 --- a/sudo.c +++ b/sudo.c @@ -187,11 +187,11 @@ void load_globals() char *p; - if ((user = malloc(9)) == NULL) { + if ((user = (char *) malloc(9)) == NULL) { perror("malloc"); exit(1); } - if ((host = malloc(MAXHOSTNAMELEN + 1)) == NULL) { + if ((host = (char *) malloc(MAXHOSTNAMELEN + 1)) == NULL) { perror("malloc"); exit(1); }