Yeah the problem with the sprintf is the bufferoverflow. Hence recommanded to use snprintf, so the second parameter to snprintf would be the length or the number of bytes to copy into char *str from...