Ciao ... Con data devi allocare spazio anche per il carattere terminatore ....