diff options
Diffstat (limited to 'src/amount.cc')
-rw-r--r-- | src/amount.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amount.cc b/src/amount.cc index 85ba07f5..274d3001 100644 --- a/src/amount.cc +++ b/src/amount.cc @@ -283,7 +283,7 @@ namespace { } if (sign) { - char * newbuf = new char[std::strlen(result ? result : buf) + 1]; + char * newbuf = new char[std::strlen(result ? result : buf) + 2]; newbuf[0] = '-'; std::strcpy(&newbuf[1], result ? result : buf); mpz_set_str(dest, newbuf, 10); |