Hello and welcome to the forums hyty,
After a quick look:
Your "array" that you send is only of size 1, where does the null go?
You also never attempt to terminate the string anywhere.
Also you are sending from 0 to 9 binary, did you want this or ASCII 0 to 9.
The first time through, the 0 you load looks like the terminator!