run time check failure #2
stack around str was corrupted
the problem is that it points to the last col of a function
so i cant see where in what line which involves str
i have this error
run time check failure #2
stack around str was corrupted
the problem is that it points to the last col of a function
so i cant see where in what line which involves str
i have this error
You have probably written past the end of the str memory. Check if you are doing a strcpy or sprintf into str that is too large for str to handle. It may also be another variable around str that is being corrupted. If you make str larger, the problem might go away, but you really should understand the cause and code to prevent it with safer functions, such as strncpy or snprintf.
Post the code snippet that is causing this error.