--- maelstrom-1.4.3-L3.0.6.orig/maclib/Mac_Wave.cpp
+++ maelstrom-1.4.3-L3.0.6/maclib/Mac_Wave.cpp
@@ -114,7 +114,7 @@
 
 	/* Load the WAVE file */
 	if ( SDL_LoadWAV(wavefile, &spec, &samples, &sound_datalen) == NULL ) {
-		error("%s", SDL_GetError());
+		error((char*)"%s", SDL_GetError());
 		return(-1);
 	}
 	/* Copy malloc()'d data to new'd data */
@@ -179,12 +179,12 @@
 
 		snd_copy16(n_types, data);
 		if ( n_types != 1 ) {
-			error("Multi-type sound not supported");
+			error((char*)"Multi-type sound not supported");
 			return(-1);
 		}
 		snd_copy16(f_type, data);
 		if ( f_type != SAMPLED_SND ) {
-			error("Not a sampled sound resource");
+			error((char*)"Not a sampled sound resource");
 			return(-1);
 		}
 		snd_copy32(init_op, data);
@@ -193,7 +193,7 @@
 	
 		snd_copy16(ref_cnt, data);
 	} else {
-		error("Unknown sound format: 0x%X", snd_version);
+		error((char*)"Unknown sound format: 0x%X", snd_version);
 		return(-1);
 	}
 
@@ -206,12 +206,12 @@
 
 		snd_copy16(num_cmds, data);
 		if ( num_cmds != 1 ) {
-			error("Multi-command sound not supported");
+			error((char*)"Multi-command sound not supported");
 			return(-1);
 		}
 		snd_copy16(command, data);
 		if ( (command != BUFFER_CMD) && (command != SOUND_CMD) ) {
-			error("Unknown sound command: 0x%X\n", command);
+			error((char*)"Unknown sound command: 0x%X\n", command);
 			return(-1);
 		}
 		snd_copy16(param1, data);
@@ -220,7 +220,7 @@
 		snd_copy32(param2, data);
 		/* Set 'data' to the offset of the sampled data */
 		if ( param2 > snd->length ) {
-			error("Offset too large -- corrupt sound?");
+			error((char*)"Offset too large -- corrupt sound?");
 			return(-1);
 		}
 		data = snd->data+param2;
@@ -238,7 +238,7 @@
 		snd_copy32(sample_offset, data);
 		/* FIXME: What's the interpretation of this offset? */
 		if ( sample_offset != 0 ) {
-			error("Sound samples don't immediately follow header");
+			error((char*)"Sound samples don't immediately follow header");
 			return(-1);
 		}
 		snd_copy32(num_samples, data);
@@ -248,7 +248,7 @@
 		snd_copy32(loop_end, data);
 		encoding = *data++;
 		if ( encoding != stdSH ) {
-			error("Non-standard sound encoding: 0x%X", encoding);
+			error((char*)"Non-standard sound encoding: 0x%X", encoding);
 			return(-1);
 		}
 		/* Frequency base might be used later */
@@ -256,7 +256,7 @@
 		
 		/* Now allocate room for the sound */
 		if ( num_samples > snd->length-(data-snd->data) ) {
-			error("truncated sound resource");
+			error((char*)"truncated sound resource");
 			return(-1);
 		}
 
@@ -528,7 +528,7 @@
 	/* Open the WAV file for writing */
 	dst = SDL_RWFromFile(wavefile, "wb");
 	if ( dst == NULL ) {
-		error("Couldn't open %s for writing", wavefile);
+		error((char*)"Couldn't open %s for writing", wavefile);
 		return(-1);
 	}
 
@@ -563,7 +563,7 @@
 	     ! SDL_WriteLE32(dst, sound_datalen) ||
 	     ! SDL_RWwrite(dst, sound_data, sound_datalen, 1) ||
 	     					(SDL_RWclose(dst) != 0) ) {
-		error("Couldn't write to %s", wavefile);
+		error((char*)"Couldn't write to %s", wavefile);
 		SDL_RWclose(dst);
 		return(-1);
 	}
