aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-08-20 16:46:29 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-08-20 16:46:29 +0000
commit0d6f6138177ce71c17233e7934e2e4b0816a93ae (patch)
tree90fedac22624aed7b9931f5c72406799c90e5e9f
parent9318fa8541991db3593f5cb4275bc9540ba4ca4d (diff)
downloadpostgresql-0d6f6138177ce71c17233e7934e2e4b0816a93ae.tar.gz
postgresql-0d6f6138177ce71c17233e7934e2e4b0816a93ae.zip
Increase buffer size in cash_words(). Pure paranoia; I don't think the
code is broken, but any small change in the output format might overrun the buffer with the old size.
-rw-r--r--src/backend/utils/adt/cash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/adt/cash.c b/src/backend/utils/adt/cash.c
index 4a8ddcf19b6..e4d6350e815 100644
--- a/src/backend/utils/adt/cash.c
+++ b/src/backend/utils/adt/cash.c
@@ -9,7 +9,7 @@
* workings can be found in the book "Software Solutions in C" by
* Dale Schumacher, Academic Press, ISBN: 0-12-632360-7.
*
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.53 2002/04/03 05:39:29 petere Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.54 2002/08/20 16:46:29 tgl Exp $
*/
#include "postgres.h"
@@ -639,7 +639,7 @@ cash_words(PG_FUNCTION_ARGS)
{
Cash value = PG_GETARG_CASH(0);
unsigned int val;
- char buf[128];
+ char buf[256];
char *p = buf;
Cash m0;
Cash m1;