[Mplayer-cvslog] CVS: main/osdep fseeko.c,1.1,1.2
Sascha Sommer CVS
syncmail at mplayerhq.hu
Sat Apr 3 23:13:57 CEST 2004
CVS change done by Sascha Sommer CVS
Update of /cvsroot/mplayer/main/osdep
In directory mail:/var2/tmp/cvs-serv12850/osdep
Modified Files:
fseeko.c
Log Message:
on mingw fpos_t seems to be bigger than off_t therefore calls to fget/setpos resulted in memory corruption
Index: fseeko.c
===================================================================
RCS file: /cvsroot/mplayer/main/osdep/fseeko.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- fseeko.c 26 Mar 2004 15:21:44 -0000 1.1
+++ fseeko.c 3 Apr 2004 21:13:54 -0000 1.2
@@ -29,7 +29,11 @@
int
fseeko(FILE *stream, off_t offset, int whence)
{
+#ifndef __MINGW32__
off_t floc;
+#else
+ fpos_t floc;
+#endif
struct stat filestat;
switch (whence)
@@ -75,7 +79,11 @@
off_t
ftello(FILE *stream)
{
+#ifndef __MINGW32__
off_t floc;
+#else
+ fpos_t floc;
+#endif
if (fgetpos(stream, &floc) != 0)
return -1;
More information about the MPlayer-cvslog
mailing list