platform/macclassic.c
changeset 316 29a4d12d1dc6
parent 247 fd2af57f1e93
child 335 1d4720c018c3
--- a/platform/macclassic.c	Sat Jun 29 22:25:10 2002 +0000
+++ b/platform/macclassic.c	Sat Jun 29 22:25:57 2002 +0000
@@ -119,7 +119,7 @@
             hpbr.volumeParam.ioVolIndex = 0;
             if (PBHGetVInfoSync(&hpbr) == noErr)
             {
-                char **tmp = realloc(retval, sizeof (char *) * cd_count + 1);
+                char **tmp = realloc(retval, sizeof (char *) * (cd_count + 1));
                 if (tmp)
                 {
                     char *str = (char *) malloc(volName[0] + 1);