Fix buffer overflows in eve.c (sf.net #3034056)