Search
lxdream.org :: lxdream/src/gdrom/cdi.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/cdi.c
changeset 999:3d19e3597d9b
prev759:f16975739abc
next1023:264e2fd90be8
author nkeynes
date Tue Mar 24 11:35:20 2009 +0000 (11 years ago)
permissions -rw-r--r--
last change Bug #67: cdi bug x86_64
Fixed as suggested in bug - convert trail.header_offset to (signed) long before negating it.
file annotate diff log raw
1.1 --- a/src/gdrom/cdi.c Mon Jul 21 01:01:39 2008 +0000
1.2 +++ b/src/gdrom/cdi.c Tue Mar 24 11:35:20 2009 +0000
1.3 @@ -99,7 +99,7 @@
1.4 }
1.5
1.6 if( trail.cdi_version == CDI_V35_ID ) {
1.7 - fseek( f, -trail.header_offset, SEEK_END );
1.8 + fseek( f, -(long)trail.header_offset, SEEK_END );
1.9 } else {
1.10 fseek( f, trail.header_offset, SEEK_SET );
1.11 }
.