Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2:Update
grub
string-ops-fix
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File string-ops-fix of Package grub
--- grub-0.97/stage2/builtins.c.orig 2008-11-20 17:46:28.000000000 +0100 +++ grub-0.97/stage2/builtins.c 2008-11-20 17:48:58.000000000 +0100 @@ -3862,7 +3862,8 @@ setup_func (char *arg, int flags) char config_filename[64]; char real_config_filename[64]; char cmd_arg[256]; - char device[16]; +#define DEVNAMLEN 256 + char device[DEVNAMLEN]; char *buffer = (char *) RAW_ADDR (0x100000); int is_force_lba = 0; char *stage2_arg = 0; @@ -3900,15 +3901,15 @@ setup_func (char *arg, int flags) { char tmp[16]; grub_sprintf (tmp, ",%d", (partition >> 16) & 0xFF); - grub_strncat (device, tmp, 256); + grub_strncat (device, tmp, DEVNAMLEN); } if ((partition & 0x00FF00) != 0x00FF00) { char tmp[16]; grub_sprintf (tmp, ",%c", 'a' + ((partition >> 8) & 0xFF)); - grub_strncat (device, tmp, 256); + grub_strncat (device, tmp, DEVNAMLEN); } - grub_strncat (device, ")", 256); + grub_strncat (device, ")", DEVNAMLEN); } int embed_stage1_5 (char *stage1_5, int drive, int partition) @@ -4125,6 +4126,7 @@ setup_func (char *arg, int flags) config_filename, real_config_filename); #endif /* NOT USED */ +#undef DEVNAMLEN /* Notify what will be run. */ grub_printf (" Running \"install %s\"... ", cmd_arg);
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