>>91
> '\0'がないとprintf("%s\n", str) では文字列の終わりを見つけらない

と書かれてるのに
printf("%s\n", str); → printf("%.5s\n", str);
と勝手に変えてるし説明もない