diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/scalaires.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/scalaires.c b/lib/scalaires.c index 33b7ef2..c2e7d1f 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) { - char resultat[128]; + static char resultat[128]; char temp[64]; if (rat.num<0) { @@ -154,6 +154,5 @@ char *rat_to_string(rationnel rat) } strcat(resultat, temp); - return Estrdup(resultat); - + return resultat; } |