summaryrefslogtreecommitdiff
path: root/sbin/fdisk/cmd.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2022-07-10 17:46:04 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2022-07-10 17:46:04 +0000
commitadfaf00da89703bd47b1adac5c04ac926d1c509e (patch)
treeeda3817bab9d7c84888bc0e368e492bf91a71817 /sbin/fdisk/cmd.c
parentd7bdd38ba08681d1c02c074dfb000f7e7adb7a26 (diff)
Use nice #define's for input buf size and output help buf size.
No functional change.
Diffstat (limited to 'sbin/fdisk/cmd.c')
-rw-r--r--sbin/fdisk/cmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/fdisk/cmd.c b/sbin/fdisk/cmd.c
index 11d3f027bce..60589e04617 100644
--- a/sbin/fdisk/cmd.c
+++ b/sbin/fdisk/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.161 2022/05/09 15:09:50 krw Exp $ */
+/* $OpenBSD: cmd.c,v 1.162 2022/07/10 17:46:03 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -517,7 +517,7 @@ Xmanual(char *args, struct mbr *mbr)
int
ask_num(const char *str, int dflt, int low, int high)
{
- char lbuf[100];
+ char lbuf[LINEBUFSZ];
const char *errstr;
int num;
@@ -546,7 +546,7 @@ ask_num(const char *str, int dflt, int low, int high)
int
ask_pid(const int dflt)
{
- char lbuf[100];
+ char lbuf[LINEBUFSZ];
int num;
for (;;) {
@@ -573,7 +573,7 @@ struct uuid *
ask_uuid(const struct uuid *olduuid)
{
static struct uuid uuid;
- char lbuf[100];
+ char lbuf[LINEBUFSZ];
char *dflt = NULL;
uint32_t status;
int num = 0;