From 04ecb2e1a275ac21122ecefbf625db438c936519 Mon Sep 17 00:00:00 2001 From: cohrs Date: Thu, 24 Jan 2002 03:13:56 +0000 Subject: [PATCH] window.doc getlin clarification Clarify the getlin interface, which is used with the implicit assumption that an input buffer of size BUFSZ (including the nul) is sufficient. --- doc/window.doc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/window.doc b/doc/window.doc index 5cfb86cae..de6f3a5ad 100644 --- a/doc/window.doc +++ b/doc/window.doc @@ -164,6 +164,9 @@ getlin(const char *ques, char *input) -- getlin() must call flush_screen(1) before doing anything. -- This uses the top line in the tty window-port, other ports might use a popup. + -- getlin() can assume the input buffer is at least BUFSZ + bytes in size and must truncate inputs to fit, including + the nul character. int get_ext_cmd(void) -- Get an extended command in a window-port specific way. An index into extcmdlist[] is returned on a successful