{
if (token[4 - i] == '\0')
continue;
- char mapped = ascii_to_advent[token[4 - i]];
+ char mapped = ascii_to_advent[(int) token[4 - i]];
*packed |= (mapped << (6 * i));
}
}
reply = get_input();
- char* firstword = (char*) xmalloc(strlen(reply));
+ char* firstword = (char*) xmalloc(strlen(reply)+1);
sscanf(reply, "%s", firstword);
for (int i = 0; i < (int)strlen(firstword); ++i)