Recent s_char purge changed element types to s_char *, but missed

patterns malloc(N * sizeof(s_char *)), fix.
This commit is contained in:
Markus Armbruster 2006-04-29 16:14:48 +00:00
parent 4cf7389ecd
commit 0a3a73cf3d
7 changed files with 7 additions and 7 deletions

View file

@ -84,7 +84,7 @@ path(void)
if (!mapbuf)
mapbuf = malloc(WORLD_Y * MAPWIDTH(3));
if (!map) {
map = malloc(WORLD_Y * sizeof(s_char *));
map = malloc(WORLD_Y * sizeof(char *));
if (map && mapbuf) {
for (i = 0; i < WORLD_Y; i++)
map[i] = &mapbuf[MAPWIDTH(3) * i];