mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix stack smash problem in makeinfo, by increasing buffer sizes in
current_chapter_number().
This commit is contained in:
parent
827a0e05b7
commit
20ff6c114f
1 changed files with 2 additions and 2 deletions
|
|
@ -256,13 +256,13 @@ current_chapter_number (void)
|
|||
return xstrdup ("");
|
||||
else if (enum_marker == APPENDIX_MAGIC)
|
||||
{
|
||||
char s[1];
|
||||
char s[2];
|
||||
sprintf (s, "%c", numbers[0] + 64);
|
||||
return xstrdup (s);
|
||||
}
|
||||
else
|
||||
{
|
||||
char s[5];
|
||||
char s[11];
|
||||
sprintf (s, "%d", numbers[0]);
|
||||
return xstrdup (s);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue