Advertisement

[C/SDL2] Bug that I cannot solve

Started by October 24, 2017 06:22 PM
1 comment, last by ingframin 6 years, 10 months ago

https://github.com/ingframin/CPongC/tree/master

I have a bug that make my game crash outside of code::blcoks but run just fine in it.

My guess is that I have an uninitialized pointer somewhere that is initialized by codeblocks when I run the code inside it.
Can someone please try and let me know?
I use codeblocks + GCC under Windows.

I solved! There was a buffer overflow! 

I changed sprintf with snprintf and the problem is solved :D

This topic is closed to new replies.

Advertisement