sprintf
In this line...
sprintf(crap, "%s", spr[h].text);
..."crap" will have the value of "spr[h].text" or not??
If not, then what this line do?
sprintf(crap, "%s", spr[h].text);
..."crap" will have the value of "spr[h].text" or not??
If not, then what this line do?
Yep. sprintf is very dangerous since it leaves potential for a buffer overflow. Either be very careful while using it or use snprintf, which sadly, isn't portable.