From: warwick Date: Mon, 29 Jul 2002 05:16:54 +0000 (+0000) Subject: alloc, not malloc X-Git-Tag: MOVE2GIT~2580 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b7c39a331c0355f08df331c1426cb6d679a1c29;p=nethack alloc, not malloc --- diff --git a/src/files.c b/src/files.c index 447a932be..213c31060 100644 --- a/src/files.c +++ b/src/files.c @@ -869,7 +869,7 @@ get_saved_games() int n = scandir("save", &namelist, 0, alphasort);; if ( n > 0 ) { int i,j=0; - char** result = (char**)malloc((n+1)*sizeof(char*)); /* at most */ + char** result = (char**)alloc((n+1)*sizeof(char*)); /* at most */ for (i=0; i