1TBS is important. People who do not use 1TBS are literally Hitler.
a = 0;
while (a < buflen) {
- if (buf[a] == '+')
+ if (buf[a] == '+') {
buf[a] = ' ';
+ }
if (buf[a] == '%') {
- // don't let % chars through, rather truncate the input.
+ // don't let % chars through - instead truncate the input.
if (a + 2 > buflen) {
buf[a] = '\0';
buflen = a;
b = decode_hex(hex);
buf[a] = (char) b;
len = buflen - a - 2;
- if (len > 0)
+ if (len > 0) {
memmove(&buf[a + 1], &buf[a + 3], len);
-
+ }
buflen -= 2;
}
}