[Scummvm-cvs-logs] CVS: tools extract.c,1.36,1.37
Torbj?rn Andersson
eriktorbjorn at users.sourceforge.net
Mon Nov 24 05:19:06 CET 2003
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/sword2 interpreter.cpp,1.26,1.27 logic.h,1.21,1.22
- Next message: [Scummvm-cvs-logs] CVS: scummvm/queen display.h,1.21,1.22 display.cpp,1.28,1.29 xref.txt,1.38,1.39
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/tools
In directory sc8-pr-cvs1:/tmp/cvs-serv16199
Modified Files:
extract.c
Log Message:
Write data to the output file, not the input file! Supposedly this fixes
bug #848015
Index: extract.c
===================================================================
RCS file: /cvsroot/scummvm/tools/extract.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- extract.c 10 Nov 2003 21:41:05 -0000 1.36
+++ extract.c 24 Nov 2003 13:18:52 -0000 1.37
@@ -53,7 +53,7 @@
fclose(output_idx);
output_idx = fopen(oggmode ? OUTPUT_OGG : OUTPUT_MP3, "wb");
- writeUint32BE(input, (uint32)idx_size);
+ writeUint32BE(output_idx, (uint32)idx_size);
in = fopen(TEMP_IDX, "rb");
while ((size = fread(buf, 1, 2048, in)) > 0) {
@@ -112,9 +112,9 @@
exit(-1);
tags -= 8;
- writeUint32BE(input, (uint32)pos);
- writeUint32BE(input, (uint32)ftell(output_snd));
- writeUint32BE(input, tags);
+ writeUint32BE(output_idx, (uint32)pos);
+ writeUint32BE(output_idx, (uint32)ftell(output_snd));
+ writeUint32BE(output_idx, tags);
while (tags > 0) {
fputc(fgetc(input), output_snd);
tags--;
@@ -143,7 +143,7 @@
}
fclose(f);
- writeUint32BE(input, tot_size);
+ writeUint32BE(output_idx, tot_size);
}
void showhelp(char *exename)
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/sword2 interpreter.cpp,1.26,1.27 logic.h,1.21,1.22
- Next message: [Scummvm-cvs-logs] CVS: scummvm/queen display.h,1.21,1.22 display.cpp,1.28,1.29 xref.txt,1.38,1.39
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list