--- genius-1.0.4/src/mpwrap.c.orig	2009-01-31 15:41:44.000000000 +0000
+++ genius-1.0.4/src/mpwrap.c	2009-02-08 19:35:39.000000000 +0000
@@ -2765,6 +2765,7 @@
 			for(i=0;i<e-len;i++)
 				strcat(p,"0");
 		} else if(e<len) {
+			p = g_realloc (p, strlen(p)+2);
 			if(p[0]=='-') {
 				shiftstr(p+1+e,1);
 				p[e+1]='.';

