fork of PCE focusing on macplus, supporting DaynaPort SCSI network emulation
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

psi: Use the correct pointer type for realloc()

Patch by Philippe Elie

+3 -3
+3 -3
src/drivers/psi/psi.c
··· 460 460 { 461 461 psi_sct_t **tmp; 462 462 463 - tmp = realloc (trk->sct, (trk->sct_cnt + 1) * sizeof (psi_sct_t **)); 463 + tmp = realloc (trk->sct, (trk->sct_cnt + 1) * sizeof (psi_sct_t *)); 464 464 465 465 if (tmp == NULL) { 466 466 return (1); ··· 630 630 { 631 631 psi_trk_t **tmp; 632 632 633 - tmp = realloc (cyl->trk, (cyl->trk_cnt + 1) * sizeof (psi_trk_t **)); 633 + tmp = realloc (cyl->trk, (cyl->trk_cnt + 1) * sizeof (psi_trk_t *)); 634 634 635 635 if (tmp == NULL) { 636 636 return (1); ··· 738 738 { 739 739 psi_cyl_t **tmp; 740 740 741 - tmp = realloc (img->cyl, (img->cyl_cnt + 1) * sizeof (psi_cyl_t **)); 741 + tmp = realloc (img->cyl, (img->cyl_cnt + 1) * sizeof (psi_cyl_t *)); 742 742 743 743 if (tmp == NULL) { 744 744 return (1);