2nd attempt :)

This commit is contained in:
Andrew Pamment 2017-04-28 18:29:22 +10:00
parent 19eed36f8b
commit 6205dfd0ff

View File

@ -82,7 +82,7 @@ static char *www_sanitize(char *inp) {
} }
result = (char *)malloc(len + 1); result = (char *)malloc(len + 1);
memset(result, 0, len); memset(result, 0, len + 1);
len = 0; len = 0;
for (i=0;i<strlen(inp);i++) { for (i=0;i<strlen(inp);i++) {
if (inp[i] == '<') { if (inp[i] == '<') {