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 ++-- lib/scalaires.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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'; -- cgit v1.2.3