alloc, not malloc

This commit is contained in:
warwick
2002-07-29 05:16:54 +00:00
parent 6baca91d81
commit 0b7c39a331

View File

@@ -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<n; i++) {
int uid;
char name[NAME_MAX];