Grazie mille sembra che ora vada!
Strano pensavo che strlen mi tenesse conto anche del terminatore...