Try to empty char array.

ea123:
simply change the first "strcat" with a "strcpy". This function copies a string (the second argument) in another (the first argument) overwriting the initial content. Another solution is to reset the string with a terminator character:

It works, Thank you very muche