[vlc-devel] commit: input: More strtol fix. (Pierre d'Herbemont )

git version control git at videolan.org
Wed Aug 13 01:54:21 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Wed Aug 13 01:57:15 2008 +0200| [d2ae907ef607760a8f9d07fa7c8cc3d1770e857a] | committer: Pierre d'Herbemont 

input: More strtol fix.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d2ae907ef607760a8f9d07fa7c8cc3d1770e857a
---

 src/input/input.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index a39cf78..7a53769 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2756,7 +2756,10 @@ static void MRLSections( input_thread_t *p_input, char *psz_source,
     }
     if( *psz_check != '-' && *psz_check ) return;
     if( *psz_check == '-' && ++psz_check )
-        if( isdigit(*psz_check) ) strtol( psz_check, &psz_check, 0 );
+    {
+        if( isdigit(*psz_check) )
+            if(!next(&psz_check)) return;
+    }
     if( *psz_check != ':' && *psz_check ) return;
     if( *psz_check == ':' && ++psz_check )
     {




More information about the vlc-devel mailing list