Strange behaviour of a char array

PaulS:
My questions:

1 - Why an array that has a dimension of 6 (char pAliasONLocal[6]) can store sondaA.txt? Because sondaA.txt has 10 characters...
It can't. You wrote beyond the end of the array.
Stop doing crazy things. Pay attention to which dimension should size the second array.

First: I'm not doing crazy things. I have a matrix where I store all of the probes alias. The matrix is as follows:

sondaA
sondaB
sondaC
...
sondaJ

(10 elements)

Second: As you see, with a for I print all this elemens (sondaA, sondaB, sondaC, ...) and I copy them into a momentary char array because I have to manipulate them individually (I have to use the sprintf function to construct a 'path' because I have to create an individual directory for each element. Using a momentary char array for doing it is more eazy). And finally my problem: I print in each cicle the value of the char pAliasONLocal[6]. As you see, instead of printing sondaA or sondaB it prints sondaA.txt or sondaB.txt. It have no sense because it's a char array[6] (and why it prints '.txt' and not 'was' or 'asf'?).

Anyone can help me?