]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/libkern/url_encode.c
xnu-6153.41.3.tar.gz
[apple/xnu.git] / bsd / libkern / url_encode.c
index 28534ada1108d88c47be4384bbdaa3cfa729fdd6..353dbbdce600f5f870c1969b33710364c3d5d646 100644 (file)
@@ -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++;
                }