X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/5ba3f43ea354af8ad55bea84372a2bc834d8757c..a991bd8d3e7fe02dbca0644054bab73c5b75324a:/bsd/libkern/url_encode.c diff --git a/bsd/libkern/url_encode.c b/bsd/libkern/url_encode.c index 0e3cf1562..0ca3d5eb0 100644 --- a/bsd/libkern/url_encode.c +++ b/bsd/libkern/url_encode.c @@ -66,14 +66,14 @@ url_decode(char *str) c += hex2int(*str++); } if (*str) { - c = (c << 4) + hex2int(*str++); + c = (char)((c << 4) + hex2int(*str++)); } if (isprint(c)) { /* overwrite the '%' with the new char, and bump the rest of the * string down a few characters */ *esc++ = c; - str = memmove(esc, str, strlen(str)+1); + str = memmove(esc, str, strlen(str) + 1); } } else { str++;