about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2001-05-01 09:46:09 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2001-05-01 09:46:09 +0000
commit0b56c15853ea8f0002da6e982bb64b4c9e768546 (patch)
treee79566a5322f9d0e3316bcb62bcfd74a00d77649
parent2e935f0186169655f422c103d677ad3d878b9eab (diff)
downloadzsh-0b56c15853ea8f0002da6e982bb64b4c9e768546.tar.gz
zsh-0b56c15853ea8f0002da6e982bb64b4c9e768546.tar.xz
zsh-0b56c15853ea8f0002da6e982bb64b4c9e768546.zip
Use BDIGBUFSIZE in two other places
-rw-r--r--ChangeLog5
-rw-r--r--Src/params.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e866eee98..a3e666ba0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-01  Peter Stephenson  <pws@csr.com>
+
+	* 14181: Src/params.c: follow-up to 14151: use BDIGBUFSIZE in
+	two other places.
+
 2001-04-30  Bart Schaefer  <schaefer@zsh.org>
 
 	* 14169: configure.in: Improve some AC_TRY_LINK tests so that they
diff --git a/Src/params.c b/Src/params.c
index d655c3411..acbe448a2 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -1393,7 +1393,7 @@ mod_export char *
 getstrvalue(Value v)
 {
     char *s, **ss;
-    char buf[(sizeof(zlong) * 8) + 4];
+    char buf[BDIGBUFSIZE];
 
     if (!v)
 	return hcalloc(1);
@@ -1535,7 +1535,7 @@ getnumvalue(Value v)
 void
 export_param(Param pm)
 {
-    char buf[(sizeof(zlong) * 8) + 4], *val;
+    char buf[BDIGBUFSIZE], *val;
 
     if (PM_TYPE(pm->flags) & (PM_ARRAY|PM_HASHED)) {
 #if 0	/* Requires changes elsewhere in params.c and builtin.c */