diff options
Diffstat (limited to 'lib/polynom.c')
-rw-r--r-- | lib/polynom.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |