/[grub]/grub2/kern/misc.c
ViewVC logotype

Diff of /grub2/kern/misc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.24 by marco_g, Mon Oct 24 10:23:46 2005 UTC revision 1.25 by okuji, Fri Oct 28 03:14:33 2005 UTC
# Line 577  grub_vsprintf (char *str, const char *fm Line 577  grub_vsprintf (char *str, const char *fm
577    
578            if (p > fmt)            if (p > fmt)
579              {              {
580                char s[p - fmt];                char s[p - fmt + 1];
581                grub_strncpy (s, fmt, p - fmt);                grub_strncpy (s, fmt, p - fmt);
582                  s[p - fmt] = 0;
583                if (s[0] == '0')                if (s[0] == '0')
584                  zerofill = '0';                  zerofill = '0';
585                format1 = grub_strtoul (s, 0, 10);                format1 = grub_strtoul (s, 0, 10);

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26