Recent s_char purge changed element types to s_char *, but missed
patterns malloc(N * sizeof(s_char *)), fix.
This commit is contained in:
parent
4cf7389ecd
commit
0a3a73cf3d
7 changed files with 7 additions and 7 deletions
|
@ -73,7 +73,7 @@ satmap(int x, int y, int eff, int range, int flags, int type)
|
|||
if (!radbuf)
|
||||
radbuf = malloc(WORLD_Y * (WORLD_X + 1));
|
||||
if (!rad) {
|
||||
rad = malloc(WORLD_Y * sizeof(s_char *));
|
||||
rad = malloc(WORLD_Y * sizeof(char *));
|
||||
if (rad && radbuf) {
|
||||
for (rx = 0; rx < WORLD_Y; rx++)
|
||||
rad[rx] = &radbuf[(WORLD_X + 1) * rx];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue