diff options
author | Vincent Labrecque <vincent@cvs.openbsd.org> | 2004-07-22 01:25:26 +0000 |
---|---|---|
committer | Vincent Labrecque <vincent@cvs.openbsd.org> | 2004-07-22 01:25:26 +0000 |
commit | 1537833022ff21d3056483919cfc0ec054c73b55 (patch) | |
tree | 9ee77c6b0ac08f47824fbe6f2b6922687f72d581 /usr.bin/mg/help.c | |
parent | c93686e4f60cff949f0e9b42fa716e5e5c8fd604 (diff) |
stage 1 of the infinite minibuffer work - add support for on the fly
buffer reallocation in veread(). This commit only changes the API.
All the buffers have exactly the same bounds as before for now.
tested by a couple of my very helpful testers!
Diffstat (limited to 'usr.bin/mg/help.c')
-rw-r--r-- | usr.bin/mg/help.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mg/help.c b/usr.bin/mg/help.c index 14b00f7becc..4670b0da993 100644 --- a/usr.bin/mg/help.c +++ b/usr.bin/mg/help.c @@ -1,4 +1,4 @@ -/* $OpenBSD: help.c,v 1.20 2002/08/22 23:28:19 deraadt Exp $ */ +/* $OpenBSD: help.c,v 1.21 2004/07/22 01:25:25 vincent Exp $ */ /* * Help functions for Mg 2 @@ -182,9 +182,9 @@ apropos_command(f, n) { BUFFER *bp; LIST *fnames, *el; - char string[32]; + char string[32], *bufp; - if (eread("apropos: ", string, sizeof(string), EFNEW) == ABORT) + if ((bufp = eread("apropos: ", string, sizeof(string), EFNEW)) == NULL) return ABORT; /* FALSE means we got a 0 character string, which is fine */ bp = bfind("*help*", TRUE); |