]> git.sesse.net Git - vlc/commitdiff
* input/subtitles.c: fix another bug in subtitle autodetection
authorYoann Peronneau <yoann@videolan.org>
Sat, 17 Jun 2006 18:42:29 +0000 (18:42 +0000)
committerYoann Peronneau <yoann@videolan.org>
Sat, 17 Jun 2006 18:42:29 +0000 (18:42 +0000)
src/input/subtitles.c

index b805a1ba32851461e9b353c6f86ea19cc3e5b081..3efc30729b4fdc4fd15db4d0da64de9df461b5d5 100644 (file)
@@ -104,7 +104,7 @@ static void strcpy_strip_ext( char *d, char *s )
         return;
     }
     else
-        strlcpy(d, s, tmp - s);
+        strlcpy(d, s, tmp - s + 1 );
     while( *d )
     {
         *d = tolower(*d);