u/Key_River7180

🔥 Hot ▲ 73 r/cprogramming

tip - do not name variables like libc functions

Today I spent three hours debugging why ncurses jumped to address 0x55d9f367b4c0 out of the wild and crashing when calling stat...

I had a variable named stat holding the status of the program, and it was doing some really shitty and incorrect pointer arit on stat or something.

so yeah, just a quick tip :)

reddit.com
u/Key_River7180 — 12 days ago