Module Name:    src
Committed By:   perry
Date:           Sun Jul  5 21:55:24 UTC 2009

Modified Files:
        src/lib/libedit: editline.3

Log Message:
note that the return value of el_gets doesn't remain valid across
calls.


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/lib/libedit/editline.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libedit/editline.3
diff -u src/lib/libedit/editline.3:1.69 src/lib/libedit/editline.3:1.70
--- src/lib/libedit/editline.3:1.69	Tue May 12 08:14:07 2009
+++ src/lib/libedit/editline.3	Sun Jul  5 21:55:24 2009
@@ -1,4 +1,4 @@
-.\"	$NetBSD: editline.3,v 1.69 2009/05/12 08:14:07 wiz Exp $
+.\"	$NetBSD: editline.3,v 1.70 2009/07/05 21:55:24 perry Exp $
 .\"
 .\" Copyright (c) 1997-2003 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -26,7 +26,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd May 11, 2009
+.Dd July 5, 2009
 .Dt EDITLINE 3
 .Os
 .Sh NAME
@@ -162,6 +162,9 @@
 is set to \-1 and
 .Dv errno
 contains the error code that caused it.
+The return value may not remain valid across calls to
+.Fn el_gets
+and must be copied if the data is to be retained.
 .It Fn el_getc
 Read a character from the tty.
 .Fa ch

Reply via email to