fix comment on bug

This commit is contained in:
Alex Groce 2018-12-31 23:13:58 -07:00
parent da18a1ae0b
commit 00b77202e3

View File

@ -18,7 +18,7 @@ char* encode(const char* input) {
last = (unsigned char)input[i]; count = 1;
}
}
encoded[pos++] = last; encoded[pos++] = 65; // Should be count, not 65!
encoded[pos++] = last; encoded[pos++] = 65; // Should be 64 + count
}
encoded[pos] = '\0';
return encoded;