On Thu, 2008-10-02 at 15:43 -0400, der Mouse wrote:
> >> #ifdef HAVE_SNPRINTF
> >>     snprintf(tmpName, MAX_TEXTLEN, "netname");
> >>     snprintf(tmpValue, MAX_TEXTLEN, "NC");
> >> #else
> >>     snprintf(tmpName, "netname");  
> >>     sprintf(tmpValue, "NC");
> >> #endif
> 
> Um, why are you calling snprintf (without a size parameter, too) in the
> non-HAVE_SNPRINTF case?

No _good_ reason. That was the bug Kipton discovered.

BTW.. Do you know of any C libraries / OS without snprintf?

-- 
Peter Clifton

Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA

Tel: +44 (0)7729 980173 - (No signal in the lab!)



_______________________________________________
geda-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to