C isn’t even bad, as long as you use the minimum amount required and do a LOT of security analysis on every line you write.
The problem with C code isn’t necessarily the language, a lot of it is the culture of people who think that unlike everyone else, they can write good, secure, bug-free C code, and they can ignore the warnings. They’re just that good!
These people seem to take the mere concept of a language that enforces memory access or security features as an insult to their intelligence.
Because of this bullshit, Linux is now behind in terms of Rust take up as Windows has begun rewriting components into Rust. I wouldn’t be surprised if the ego-based in-fighting between kernel devs will lead to Windows being significantly more secure in a few years.