[vlc-commits] var_LocationParse: fix buffer size
Rémi Denis-Courmont
git at videolan.org
Sat Mar 19 18:19:09 CET 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Mar 19 19:18:44 2011 +0200| [e026f3a41eb75880e63d614ab940171cd8678a7f] | committer: Rémi Denis-Courmont
var_LocationParse: fix buffer size
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e026f3a41eb75880e63d614ab940171cd8678a7f
---
src/misc/variables.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/misc/variables.c b/src/misc/variables.c
index 2e25df4..e2b6f14 100644
--- a/src/misc/variables.c
+++ b/src/misc/variables.c
@@ -1097,7 +1097,7 @@ cleanup:
int var_LocationParse (vlc_object_t *obj, const char *mrl, const char *pref)
{
int ret = VLC_SUCCESS;
- size_t preflen = strlen (pref);
+ size_t preflen = strlen (pref) + 1;
assert(mrl != NULL);
while (*mrl != '\0')
More information about the vlc-commits
mailing list