code is still unsafe, bounds need to be checked after each sprintf/strcat call.
Attach a file by drag & drop or click to upload