Optimization caused buffer overflow. Now -O2 , not -O3