summaryrefslogtreecommitdiff
path: root/graphics/ayam/files/patch-MF3D_mftextrd.c
blob: 2a5fe13715cc0252062e783e25f58e910840f982 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
--- MF3D/mftextrd.c.orig	2015-06-23 18:03:50 UTC
+++ MF3D/mftextrd.c
@@ -178,7 +178,7 @@ MF3D_GetTOCLabels(
 			MFASSERT(numNewLabels >= 0);
 
 			if (numNewLabels > 0)
-				result = MF3D_Reallocate(&tocLabelNames,
+				result = MF3D_Reallocate((void **)&tocLabelNames,
 						(numLabels + numNewLabels) * sizeof(*tocLabelNames));
 		}
 
@@ -250,7 +250,7 @@ MF3D_ConvertTableLabels(
 			if (result != kMF3DNoErr)
 				break;
 
-			result = MF3D_Reallocate(&objLabelName, labelLen);
+			result = MF3D_Reallocate((void **)&objLabelName, labelLen);
 			if (result != kMF3DNoErr)
 				break;
 
@@ -381,7 +381,7 @@ MF3D_PreprocessTextFile(
 			char			objName[kMF3D_MaxObjNameLength + 1];
 
 			if (numObjects % kMF3D_ObjTableChunk == 0)
-			{	result = MF3D_Reallocate(&objTable,
+			{	result = MF3D_Reallocate((void **)&objTable,
 						(numObjects + kMF3D_ObjTableChunk) * sizeof(*objTable));
 				if (result != kMF3DNoErr)
 					goto PreprocessTextFileAbort;
@@ -419,7 +419,7 @@ MF3D_PreprocessTextFile(
 					{	/* We found a TOC object. We will want to find
 						 * this later; so save the index.
 						 */
-						result = MF3D_Reallocate(&tocLocations,
+						result = MF3D_Reallocate((void **)&tocLocations,
 								(numTocs + 1) * sizeof(*tocLocations));
 						if (result != kMF3DNoErr)
 							goto PreprocessTextFileAbort;
@@ -499,7 +499,7 @@ MF3D_PreprocessTextFile(
 
 	/* Readjust the object table from its chunky size */
 	if (result == kMF3DNoErr)
-	{	result = MF3D_Reallocate(&objTable, (numObjects + 1) * sizeof(*objTable));
+	{	result = MF3D_Reallocate((void **)&objTable, (numObjects + 1) * sizeof(*objTable));
 		if (result == kMF3DNoErr)
 		{	/* Store the file length here */
 			AssignInt64(objTable[numObjects].objLocation, location);
@@ -1027,7 +1027,7 @@ MF3D_BuildString_AddChar(
 
 	result = kMF3DNoErr;
 	if ((ioStringPtr->pos % kMF3D_StringBufferChunk) == 0)
-		result = MF3D_Reallocate(&ioStringPtr->str,
+		result = MF3D_Reallocate((void **)&ioStringPtr->str,
 				ioStringPtr->pos + kMF3D_StringBufferChunk);
 
 	if (result == kMF3DNoErr)