Yes this fixes the problem.
Ulrich
Code Select
--- vompserver-0.4.1/recplayer.c 2014-02-16 22:11:49.000000000 +0100
+++ vompserver-0.4.1.new/recplayer.c 2014-11-23 14:25:40.815182313 +0100
@@ -168,7 +168,7 @@
ULONG yetToGet = amount;
ULONG got = 0;
ULONG getFromThisSegment = 0;
- ULONG filePosition;
+ ULLONG filePosition;
while(got < amount)
{
@@ -186,7 +186,7 @@
getFromThisSegment = segments[segmentNumber]->end - currentPosition;
filePosition = currentPosition - segments[segmentNumber]->start;
- fseek(file, filePosition, SEEK_SET);
+ fseeko(file, filePosition, SEEK_SET);
if (fread(&buffer[got], getFromThisSegment, 1, file) != 1) return 0; // umm, big problem.
// Tell linux not to bother keeping the data in the FS cache
Ulrich