From: miod Date: Thu, 12 Jan 2023 07:18:25 +0000 (+0000) Subject: Fix trivial stack buf oflow X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2d44bce059aa350e3dceb1e348250e729589e064;p=openbsd Fix trivial stack buf oflow --- diff --git a/gnu/usr.bin/texinfo/makeinfo/sectioning.c b/gnu/usr.bin/texinfo/makeinfo/sectioning.c index 4353b994bd8..9db0015df5b 100644 --- a/gnu/usr.bin/texinfo/makeinfo/sectioning.c +++ b/gnu/usr.bin/texinfo/makeinfo/sectioning.c @@ -1,5 +1,5 @@ /* sectioning.c -- for @chapter, @section, ..., @contents ... - $Id: sectioning.c,v 1.1.1.3 2006/07/17 16:03:48 espie Exp $ + $Id: sectioning.c,v 1.2 2023/01/12 07:18:25 miod Exp $ Copyright (C) 1999, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. @@ -256,7 +256,7 @@ 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); }