Concatenate two char arrays (for udp client)

Thanks a lot for your suggestion!

Is sprintf() safe? Can it have memory lacks or problems?

I'd like to build a roboust application and i'm trying to avoid memory problems.

What do you think about this?

Thanks again.