summaryrefslogtreecommitdiff
path: root/mpz/dump.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-01-29 01:10:59 +0100
committerKevin Ryde <user42@zip.com.au>2001-01-29 01:10:59 +0100
commitb5e5f216c746fc5e1ead5ae8693bba795c573aa9 (patch)
treee32345b9917c758937669b1263984c6b67f03c00 /mpz/dump.c
parent5bc53be073dbfb32a7a611b8d2ccdcdd2c56b0f9 (diff)
downloadgmp-b5e5f216c746fc5e1ead5ae8693bba795c573aa9.tar.gz
More of:
* mpz/get_str.c, mpf/get_str.c: Make allocated string block exactly strlen(str)+1 bytes. * mpz/dump.c, mpf/dump.c, tests/mpz/convert.c: Use this size when freeing. (Add string.h for strlen.)
Diffstat (limited to 'mpz/dump.c')
-rw-r--r--mpz/dump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mpz/dump.c b/mpz/dump.c
index 11c2a6b18..4fccdaef9 100644
--- a/mpz/dump.c
+++ b/mpz/dump.c
@@ -25,6 +25,7 @@ the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA. */
#include <stdio.h>
+#include <string.h> /* for strlen */
#include "gmp.h"
#include "gmp-impl.h"