public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Boian Bonev <bbonev@ipacct.com>
To: linux-xfs@vger.kernel.org
Cc: bage@debian.org, Boian Bonev <bbonev@ipacct.com>
Subject: [PATCH] Avoid format truncation
Date: Sun, 14 Nov 2021 23:14:58 +0200	[thread overview]
Message-ID: <20211114211457.199710-1-bbonev@ipacct.com> (raw)

io.c:644:17: note: ‘snprintf’ output between 4 and 14 bytes into a destination of size 8

Signed-off-by: Boian Bonev <bbonev@ipacct.com>
---
 db/io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/db/io.c b/db/io.c
index c79cf105..154c3bd9 100644
--- a/db/io.c
+++ b/db/io.c
@@ -638,7 +638,7 @@ stack_f(
 	char	**argv)
 {
 	int	i;
-	char	tagbuf[8];
+	char	tagbuf[14];
 
 	for (i = iocur_sp; i > 0; i--) {
 		snprintf(tagbuf, sizeof(tagbuf), "%d: ", i);
-- 
2.33.1


             reply	other threads:[~2021-11-14 21:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-14 21:14 Boian Bonev [this message]
2021-11-15 16:45 ` [PATCH] Avoid format truncation Darrick J. Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211114211457.199710-1-bbonev@ipacct.com \
    --to=bbonev@ipacct.com \
    --cc=bage@debian.org \
    --cc=linux-xfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox