Commit e026f3a4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

var_LocationParse: fix buffer size

parent 4390c31a
...@@ -1097,7 +1097,7 @@ cleanup: ...@@ -1097,7 +1097,7 @@ cleanup:
int var_LocationParse (vlc_object_t *obj, const char *mrl, const char *pref) int var_LocationParse (vlc_object_t *obj, const char *mrl, const char *pref)
{ {
int ret = VLC_SUCCESS; int ret = VLC_SUCCESS;
size_t preflen = strlen (pref); size_t preflen = strlen (pref) + 1;
assert(mrl != NULL); assert(mrl != NULL);
while (*mrl != '\0') while (*mrl != '\0')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment