explain how to clear an entry (without reading the source)

This commit is contained in:
christos 2015-11-22 15:53:10 +00:00
parent 165df8bad6
commit cd40e75014

View File

@ -1,4 +1,4 @@
/* $NetBSD: fdisk.c,v 1.152 2015/06/16 23:58:30 christos Exp $ */ /* $NetBSD: fdisk.c,v 1.153 2015/11/22 15:53:10 christos Exp $ */
/* /*
* Mach Operating System * Mach Operating System
@ -39,7 +39,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#ifndef lint #ifndef lint
__RCSID("$NetBSD: fdisk.c,v 1.152 2015/06/16 23:58:30 christos Exp $"); __RCSID("$NetBSD: fdisk.c,v 1.153 2015/11/22 15:53:10 christos Exp $");
#endif /* not lint */ #endif /* not lint */
#define MBRPTYPENAMES #define MBRPTYPENAMES
@ -2975,7 +2975,7 @@ string(const char *prompt, int length, char *buf)
int len; int len;
for (;;) { for (;;) {
printf("%s: [%.*s] ", prompt, length, buf); printf("%s: [%.*s] (space to clear)", prompt, length, buf);
if (!fgets(lbuf, LBUF, stdin)) if (!fgets(lbuf, LBUF, stdin))
errx(1, "EOF"); errx(1, "EOF");