This among other things is why I hate coding in C.
Count yourself lucky if the only bugs you have are seg faults, they are easy to find and easy to fix. It’s scary when...