Concatenate two char arrays (for udp client)

The only risk you have with sprintf is that you will outrun your target buffer space.
As you are using a char buffer containing the variable name and you are adding a int you can 100% guarantee your buffer is big enough.
Unless you go for runtime memory allocation (like String class does) you will always have this problem.
Best regards
Jantje