From 0dfc174710671039e79f03baa92f41e3cc693b61 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 10 Jul 2024 19:55:10 -0500 Subject: [PATCH] Manual dash insertion needs a manual NUL. --- toys/other/blkid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/toys/other/blkid.c b/toys/other/blkid.c index cdeb3a6f..f6502e7c 100644 --- a/toys/other/blkid.c +++ b/toys/other/blkid.c @@ -205,6 +205,7 @@ static void do_blkid(int fd, char *name) if (!(i&1)) *s++ = '-'; *s++ = toybuf[uoff++]; } + *s = 0; } else { for (j = 0; j < 16; j++) s += sprintf(s, "-%02x"+!(0x550 & (1<