Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:goupilmtos:2024:games
barrage
barrage-overflow.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
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 */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor