-/* $OpenBSD: misc.c,v 1.66 2021/06/10 15:21:19 krw Exp $ */
+/* $OpenBSD: misc.c,v 1.67 2021/06/13 14:14:56 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
char *
ask_string(const char *prompt, const char *oval)
{
- static char buf[37];
+ static char buf[UUID_STR_LEN + 1];
buf[0] = '\0';
printf("%s: [%s] ", prompt, oval ? oval : "");
-/* $OpenBSD: part.c,v 1.83 2021/06/12 18:35:37 krw Exp $ */
+/* $OpenBSD: part.c,v 1.84 2021/06/13 14:14:56 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
static const struct part_type {
int type;
char sname[14];
- char guid[37];
+ char guid[UUID_STR_LEN + 1];
} part_types[] = {
{ 0x00, "unused ", "00000000-0000-0000-0000-000000000000" },
{ 0x01, "FAT12 ", "ebd0a0a2-b9e5-4433-87c0-68b6b72699c7" },
char *
PRT_uuid_to_typename(struct uuid *uuid)
{
- static char partition_type[37]; /* Room for a GUID if needed. */
+ static char partition_type[UUID_STR_LEN + 1];
char *uuidstr = NULL;
int i, entries, status;