diff options
author | biouman <biouman> | 2001-05-01 13:15:06 +0000 |
---|---|---|
committer | biouman <biouman> | 2001-05-01 13:15:06 +0000 |
commit | 5728d2b6a023b3f71be74bfcafd5ea6b920df943 (patch) | |
tree | 3a0510ca85c6ca2a85d28f5479a557c3149564f7 | |
parent | 64d48fffcab0f9d1213c63a0418f449b0ddab793 (diff) |
*** empty log message ***
-rw-r--r-- | lib/polynom.c | 3 | ||||
-rw-r--r-- | lib/scalaires.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/polynom.c b/lib/polynom.c index 837df56..84eea37 100644 --- a/lib/polynom.c +++ b/lib/polynom.c @@ -269,9 +269,10 @@ double ply_valuation(polynome poly, double point) char *ply_affichage(polynome poly) { /* routine d'affichage d'un polynome */ - static char buf[BUFSIZ] = { 0 }, temp[BUFSIZ]; + static char buf[BUFSIZ], temp[BUFSIZ]; int count = 0; + buf[0] = '0'; while (poly) { if (poly->degre != 0) { sprintf(temp, "%s*%s^%u ", rat_to_string(poly->coef), mute, poly->degre); diff --git a/lib/scalaires.c b/lib/scalaires.c index 8410e4e..509f126 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] = { 0 }; + static char resultat[128]; char temp[64]; resultat[0] = '\0'; |