Cioè sarebbe più corretto così?

codice:
char *buf;
buf = calloc(lunghezzaDesiderata + 1, sizeof(char));
snprintf(buf, sizeof(buf), ".....", ...);