X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=direct.c;h=809bb79090460d4632a7c397e5de0061819af491;hb=7170b3e33aa62681bf59d6b8bcc05c09018396a1;hp=e3685d1c8eef7c245370338c30347b215c6f4994;hpb=dc18dfea58c68ce862f72aac1315c4c251e0b0d1;p=rmac diff --git a/direct.c b/direct.c index e3685d1..809bb79 100644 --- a/direct.c +++ b/direct.c @@ -645,8 +645,7 @@ allright: } lseek(fd, pos, SEEK_SET); - size -= pos; - if ((int64_t)size < 0) + if ((int64_t)(size - pos) < 0) { return error("requested incbin size out of range"); }