summaryrefslogtreecommitdiff
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
parent1d411400491b387f41a2b3823ffce1d6b09182a7 (diff)
*** empty log message ***
-rw-r--r--lib/polynom.c4
-rw-r--r--lib/scalaires.c2
2 files changed, 3 insertions, 3 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;
}
diff --git a/lib/scalaires.c b/lib/scalaires.c
index 509f126..8410e4e 100644
--- a/lib/scalaires.c
+++ b/lib/scalaires.c
@@ -119,7 +119,7 @@ rationnel rat_division(rationnel rat1, rationnel rat2)
char *rat_to_string(rationnel rat)
{
- static char resultat[128];
+ static char resultat[128] = { 0 };
char temp[64];
resultat[0] = '\0';