diff --git a/lib/libutils/ext/snprintk.c b/lib/libutils/ext/snprintk.c index eea38a26083..a9e93daec04 100644 --- a/lib/libutils/ext/snprintk.c +++ b/lib/libutils/ext/snprintk.c @@ -80,7 +80,7 @@ #define NOLOCK 0x1000 /* don't acquire a tty lock */ /* max size buffer kprintf needs to print a UUID */ -#define KPRINTF_BUFSIZE 36 +#define KPRINTF_BUFSIZE 37 /* * The following macro is used to remove const cast-away warnings @@ -220,7 +220,7 @@ static int uuid2str(char *dst, size_t size, void *ptr) } *uuid = ptr; return snprintk(dst, size, - "%08x-%04x-%04x-%02x%02x%02x%02x%02x%02x%02x%02x", + "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", uuid->lo, uuid->mid, uuid->hi_ver, uuid->seq_n[0], uuid->seq_n[1], uuid->seq_n[2], uuid->seq_n[3],