[goffice] dtoa: fix infinite loop.



commit bda3dedd9616eab3ecc4e7a4c4db06de6242a256
Author: Morten Welinder <terra gnome org>
Date:   Mon Apr 28 19:48:38 2014 -0400

    dtoa: fix infinite loop.

 goffice/math/go-dtoa.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/goffice/math/go-dtoa.c b/goffice/math/go-dtoa.c
index 1610b38..ebd379f 100644
--- a/goffice/math/go-dtoa.c
+++ b/goffice/math/go-dtoa.c
@@ -522,6 +522,7 @@ go_dtoa (GString *dst, const char *fmt, ...)
                                go_string_append_gstring (dst, alt);
                                if (debug) g_printerr ("  --> %s\n", dst->str);
                                p--;
+                               again = (p > 0);
                        } else
                                again = FALSE;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]