From 9e9a7f62bc1f48ef5f6526b7ad2abd4514a7e5d1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 11 May 2007 09:53:42 +0000 Subject: [PATCH] *** no comment *** --- src/amount.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amount.cc b/src/amount.cc index b014112b..6479ca3d 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -268,7 +268,7 @@ namespace { } if (sign) { - char * newbuf = new char[std::strlen(result ? result : buf) + 2]; + char * newbuf = new char[std::strlen(result ? result : buf) + 4]; newbuf[0] = '-'; std::strcpy(&newbuf[1], result ? result : buf); mpz_set_str(dest, newbuf, 10);