[vlc-commits] access: archive: fix write to const

Francois Cartegnie git at videolan.org
Sat Nov 15 14:18:56 CET 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Nov 15 14:15:22 2014 +0100| [5f23d55626465d3c774ce0fbadf9bc74d5fe4121] | committer: Francois Cartegnie

access: archive: fix write to const

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

 modules/access/archive/access.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/archive/access.c b/modules/access/archive/access.c
index 0410d96..a36edcf 100644
--- a/modules/access/archive/access.c
+++ b/modules/access/archive/access.c
@@ -316,7 +316,7 @@ int AccessOpen(vlc_object_t *p_object)
     if (unlikely(psz_base == NULL))
         return VLC_ENOMEM;
 
-    const char *psz_name = psz_base + (sep - p_access->psz_location);
+    char *psz_name = psz_base + (sep - p_access->psz_location);
     *(psz_name++) = '\0';
 
     if (decode_URI(psz_base) == NULL)



More information about the vlc-commits mailing list