Dopo aver aggiunto un if per evitare buffer overflow, mi sono accorto che non era comunque possibile perché ho usato %c, che prende in input un solo carattere. Grazie comunque a Alessandro Gessa che mi ha suggerito strlen().
Log in to post a comment.