summaryrefslogtreecommitdiff
path: root/lib/polynom.c
diff options
context:
space:
mode:
authorbiouman <biouman>2001-05-01 12:56:17 +0000
committerbiouman <biouman>2001-05-01 12:56:17 +0000
commit64d48fffcab0f9d1213c63a0418f449b0ddab793 (patch)
tree895ff74aaf4204d1f8d2231d4b62cd59fc6363c6 /lib/polynom.c
parent1d411400491b387f41a2b3823ffce1d6b09182a7 (diff)
*** empty log message ***
Diffstat (limited to 'lib/polynom.c')
-rw-r--r--lib/polynom.c4
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;
}