changeset 301:4e24652c5ddf src

in dvdnav_sector_search() replaced check (length-offset<0) with safer (length<offset) ; patch by ggurob abv bg
author nicodvb
date Wed, 11 Jul 2007 21:21:45 +0000
parents cbd2b606f343
children ef017423e37c
files searching.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/searching.c	Mon Jun 11 21:14:12 2007 +0000
+++ b/searching.c	Wed Jul 11 21:21:45 2007 +0000
@@ -243,7 +243,7 @@
     target += offset;
     break;
    case SEEK_END:
-    if(length - offset < 0) {
+    if(length < offset) {
       printerr("Request to seek before start.");
       pthread_mutex_unlock(&this->vm_lock);
       return DVDNAV_STATUS_ERR;