File barrage-overflow.patch of Package barrage
--- src/menu.c +++ src/menu.c @@ -21,7 +21,7 @@ if ( menu->entry_count >= MAX_MENU_ENTRIES ) return; entry = &menu->entries[menu->entry_count++]; - snprintf( entry->name, 24, "%s", name ); entry->name[23] = 0; + snprintf( entry->name, sizeof(entry->name), "%s", name ); entry->name[23] = 0; entry->w = SDL_TextWidth( ft_menu, entry->name ); entry->h = SDL_FontHeight( ft_menu ); entry->x = (screen->w - entry->w) / 2; /* always centered */