--- toppler-1.1.3.orig/leveledit.cc 2007-07-19 18:26:35 +0400 +++ toppler-1.1.3/leveledit.cc 2009-08-06 11:54:59 +0400 @@ -436,7 +436,7 @@ snprintf(knam, 256, "%s%s", keymod2str(_ed_keys[k].mod), SDL_GetKeyName(_ed_keys[k].key)); - snprintf(tabbuf2, 256, "%3i", maxkeylen - scr_textlength(knam)); + snprintf(tabbuf2, 6, "%3i", maxkeylen - scr_textlength(knam)); if (tabbuf2[0] < '0') tabbuf2[0] = '0'; if (tabbuf2[1] < '0') tabbuf2[1] = '0'; if (tabbuf2[2] < '0') tabbuf2[2] = '0';