X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/008676633c2ad2c325837c2b64915f7ded690a8f..94ff46dc2849db4d43eaaf144872decc522aafb4:/bsd/libkern/url_encode.c diff --git a/bsd/libkern/url_encode.c b/bsd/libkern/url_encode.c index 28534ada1..353dbbdce 100644 --- a/bsd/libkern/url_encode.c +++ b/bsd/libkern/url_encode.c @@ -73,11 +73,8 @@ url_decode(char *str) /* 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); - } else { - str++; + str = memmove(esc, str, strlen(str) + 1); } - } else { str++; }