platform/macclassic.c
changeset 316 29a4d12d1dc6
parent 247 fd2af57f1e93
child 335 1d4720c018c3
equal deleted inserted replaced
315:b209dfe09e57 316:29a4d12d1dc6
   117             hpbr.volumeParam.ioNamePtr = volName;
   117             hpbr.volumeParam.ioNamePtr = volName;
   118             hpbr.volumeParam.ioVRefNum = dqp->dQDrive;
   118             hpbr.volumeParam.ioVRefNum = dqp->dQDrive;
   119             hpbr.volumeParam.ioVolIndex = 0;
   119             hpbr.volumeParam.ioVolIndex = 0;
   120             if (PBHGetVInfoSync(&hpbr) == noErr)
   120             if (PBHGetVInfoSync(&hpbr) == noErr)
   121             {
   121             {
   122                 char **tmp = realloc(retval, sizeof (char *) * cd_count + 1);
   122                 char **tmp = realloc(retval, sizeof (char *) * (cd_count + 1));
   123                 if (tmp)
   123                 if (tmp)
   124                 {
   124                 {
   125                     char *str = (char *) malloc(volName[0] + 1);
   125                     char *str = (char *) malloc(volName[0] + 1);
   126                     retval = tmp;
   126                     retval = tmp;
   127                     if (str != NULL)
   127                     if (str != NULL)