ive tried stepping through the code but i could not find anything especially since im not exactly sure what it is that im looking for as this is the only code that ive made that needs to use a sprintf and this code is the first time that ive recieved a buffer overrun. the only thing that i have discovered so far is that this code segment
sprintf ( str,"%d", Score );
when removed from the other code will not cause the error but i know that this segment somehow converts the integer Score into a String which is a step neccesary to print the score integer beyond that im unsure of what is happening the only geuss ive got is that more memory needs to be allocated to the string but since ive never used this comand before im not even sure if that is possible.
also im unfamiliar with this code
i know it declares a string but what is the [400] for and is it possible that the number within those brackets needs to changed?