]> git.sesse.net Git - vlc/commitdiff
Fix off by one
authorRafaël Carré <funman@videolan.org>
Sat, 29 Mar 2008 11:12:43 +0000 (12:12 +0100)
committerRafaël Carré <funman@videolan.org>
Sat, 29 Mar 2008 11:13:32 +0000 (12:13 +0100)
src/modules/modules.c

index 13cf4e612d69266b53b6b4c44d0e1d4f07122218..2892b2cbf5de1f895d37d0d1d092e976710f7390 100644 (file)
@@ -919,7 +919,7 @@ static char * copy_next_paths_token( char * paths, char ** remaining_paths )
     assert( paths );
 
     /* Alloc a buffer to store the path */
-    path = malloc( strlen( paths ) );
+    path = malloc( strlen( paths ) + 1 );
     if( !path ) return NULL;
 
     /* Look for PATH_SEP_CHAR (a ':' or a ';') */