From 64d48fffcab0f9d1213c63a0418f449b0ddab793 Mon Sep 17 00:00:00 2001 From: biouman Date: Tue, 1 May 2001 12:56:17 +0000 Subject: *** empty log message *** --- lib/polynom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/polynom.c') diff --git a/lib/polynom.c b/lib/polynom.c index 5085a1f..837df56 100644 --- a/lib/polynom.c +++ b/lib/polynom.c @@ -269,7 +269,7 @@ double ply_valuation(polynome poly, double point) char *ply_affichage(polynome poly) { /* routine d'affichage d'un polynome */ - char buf[BUFSIZ] = { 0 }, temp[BUFSIZ]; + static char buf[BUFSIZ] = { 0 }, temp[BUFSIZ]; int count = 0; while (poly) { @@ -285,5 +285,5 @@ char *ply_affichage(polynome poly) exception(2, _("ply_affichage: strcat error, not enough space in buffer")); poly = poly->suiv; } - return Estrdup(buf); + return buf; } -- cgit v1.2.3