Subject: Re: tgetstr bug
To: None <tech-userlevel@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-userlevel
Date: 12/18/2006 05:14:47
> The code that passes NULL is non-portable.  According to the TOG:

>     The tgetstr() function gets the string entry for id.  If area is
>     not a null pointer and does not point to a null pointer,
>     tgetstr() copies the string entry into the buffer pointed to by
>     *area and advances the variable pointed to by area to the first
>     byte after the copy of the string entry.

This quote is irrelevant to the issue at hand; it has no bearing on
what happens if area is a null pointer or points to a null pointer.

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML	       mouse@rodents.montreal.qc.ca
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B