hello all
I stumbled across something "interesting" and I cant put my finger why the behaviour isn't coherent.
Check this code.
char buf[100];
sprint(buf,"%s",bla);
Simple, right. It's easy to understand what is going on when bla is a NULL pointer.
This should always segfault right!?
In one machine the executable segfaults, on another (my development machine), it's just business as usual.
My devel PC is running Windows7 and I'm compiling with gcc/MingW. The computer where this is crashing is XP and it does have Visual studio 6 installed.
Why on earth doesn't this crash on my PC!?
Cheers