]> git.sesse.net Git - vlc/commitdiff
duplicate: fix bug of NumInRange(), i_stop always < 0
authorAndy chenee <chenee543216@gmail.com>
Thu, 3 Sep 2009 17:21:52 +0000 (01:21 +0800)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 5 Sep 2009 08:53:57 +0000 (11:53 +0300)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/stream_out/duplicate.c

index d1939fcb7f86e87ce6ecdb3fce8385075e8dd249..6a50fdc9a4b76c2a631616a2087f430ae9855cc6 100644 (file)
@@ -310,7 +310,7 @@ static bool NumInRange( char *psz_range, int i_num )
         i_start = strtol( psz_range, &end, 0 );
         if( end == psz_range ) i_start = i_num;
 
-        i_stop  = strtol( psz,       &end, 0 );
+        i_stop  = strtol( psz+1,       &end, 0 );
         if( end == psz_range ) i_stop = i_num;
     }
     else