summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPixel <Pixel>2001-05-01 12:47:44 +0000
committerPixel <Pixel>2001-05-01 12:47:44 +0000
commit1d411400491b387f41a2b3823ffce1d6b09182a7 (patch)
treea68f5a3cd92740f7f5871f2c629b27635ce67f3b /lib
parent1d19117579eb899eb2d92136e0f4661f629db201 (diff)
Plouf
Diffstat (limited to 'lib')
-rw-r--r--lib/polynom.c2
-rw-r--r--lib/scalaires.c2
2 files changed, 3 insertions, 1 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,"-");