diff options
-rw-r--r-- | lib/polynom.c | 2 | ||||
-rw-r--r-- | lib/scalaires.c | 2 | ||||
-rw-r--r-- | po/cat-id-tbl.c | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/lib/polynom.c b/lib/polynom.c index f9f3c1c..5085a1f 100644 --- a/lib/polynom.c +++ b/lib/polynom.c @@ -282,7 +282,7 @@ char *ply_affichage(polynome poly) if (count < BUFSIZ) strcat(buf, temp); else - exception(2, _("ply_affichage: strcat error, not enoug space in buffer")); + exception(2, _("ply_affichage: strcat error, not enough space in buffer")); poly = poly->suiv; } return Estrdup(buf); diff --git a/lib/scalaires.c b/lib/scalaires.c index c2e7d1f..509f126 100644 --- a/lib/scalaires.c +++ b/lib/scalaires.c @@ -122,6 +122,8 @@ char *rat_to_string(rationnel rat) static char resultat[128]; char temp[64]; + resultat[0] = '\0'; + if (rat.num<0) { rat.num=-rat.num; strcat(resultat,"-"); diff --git a/po/cat-id-tbl.c b/po/cat-id-tbl.c index 4c597d9..18e2c30 100644 --- a/po/cat-id-tbl.c +++ b/po/cat-id-tbl.c @@ -49,7 +49,7 @@ const struct _msg_ent _msg_tbl[] = { {"act_pile: Unknown operator", 40}, {"\t-- Printing Stack\n", 41}, {"\t-- End Printing Stack\n", 42}, - {"ply_affichage: strcat error, not enoug space in buffer", 43}, + {"ply_affichage: strcat error, not enough space in buffer", 43}, {"rat_constr: division by zero", 44}, {"division by zero", 45}, }; |