[vlc-commits] url: missing cast, fix warning
Rémi Denis-Courmont
git at videolan.org
Sun Dec 2 18:41:47 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 2 19:37:42 2018 +0200| [1aacbaf2a39ff5f136f039169abdf1fc7ec05214] | committer: Rémi Denis-Courmont
url: missing cast, fix warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1aacbaf2a39ff5f136f039169abdf1fc7ec05214
---
src/text/url.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/text/url.c b/src/text/url.c
index e530da0075..73644f1b19 100644
--- a/src/text/url.c
+++ b/src/text/url.c
@@ -867,7 +867,7 @@ static void vlc_uri_putc(struct vlc_memstream *s, int c, const char *extras)
if (isurisafe(c) || isurisubdelim(c) || (strchr(extras, c) != NULL))
vlc_memstream_putc(s, c);
else
- vlc_memstream_printf(s, "%%%02hhX", c);
+ vlc_memstream_printf(s, "%%%02hhX", (unsigned char)c);
}
char *vlc_uri_fixup(const char *str)
More information about the vlc-commits
mailing list