In scanf the maxmium length of %s does not include the null-terminator.