Subject: PR/37062 CVS commit: src/lib/libcurses
To: None <,,>
From: Julian Coleman <>
List: pkgsrc-bugs
Date: 10/25/2007 20:35:02
The following reply was made to PR pkg/37062; it has been noted by GNATS.

From: Julian Coleman <>
Subject: PR/37062 CVS commit: src/lib/libcurses
Date: Thu, 25 Oct 2007 20:32:40 +0000 (UTC)

 Module Name:	src
 Committed By:	jdc
 Date:		Thu Oct 25 20:32:40 UTC 2007
 Modified Files:
 	src/lib/libcurses: curses_keyname.3 keyname.c
 Log Message:
 Return "-1" for unknown keys and only return NULL for errors.
 Make the key name string a static buffer.  The specification allows this,
 so the previous behaviour would leak a small amount of memory, as the
 application wouldn't free the returned string.
 Fixes one part of PR pkg/37062.
 To generate a diff of this commit:
 cvs rdiff -r1.3 -r1.4 src/lib/libcurses/curses_keyname.3
 cvs rdiff -r1.4 -r1.5 src/lib/libcurses/keyname.c
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.