Subject: Re: tgetstr bug
To: None <email@example.com>
From: Christos Zoulas <firstname.lastname@example.org>
Date: 12/18/2006 12:43:22
In article <200612181018.FAA00192@Sparkle.Rodents.Montreal.QC.CA>,
der Mouse <mouse@Rodents.Montreal.QC.CA> wrote:
>> 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.
Yes, this is why I interpreted that if the area is NULL, the results
are undefined... Anyway, I fixed it so that if the area is NULL we return
the capability from a static area.