Another update from ingydotnet^djgoku

This commit is contained in:
Ingy döt Net 2015-11-18 06:14:39 +00:00
parent 91df62d461
commit 948b86eafa
7604 changed files with 108452 additions and 22726 deletions

View file

@ -31,7 +31,7 @@ int decode(const char *s, char *dec)
int main()
{
const char *url = "http%3A%2F%2ffoo+bar%2fabcd";
char out[sizeof(url)];
char out[strlen(url) + 1];
printf("length: %d\n", decode(url, 0));
puts(decode(url, out) < 0 ? "bad string" : out);