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