From 0f865e17e2245cf54c0b40a167ee24578cada43e Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Wed, 12 Jun 2002 12:06:53 +0000 Subject: Applied Lee Kindness' patch to fix one of memory allocation with floating point numbers. --- src/interfaces/ecpg/lib/execute.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/interfaces/ecpg/lib/execute.c') diff --git a/src/interfaces/ecpg/lib/execute.c b/src/interfaces/ecpg/lib/execute.c index 33941a7f89b..4723d09a8bb 100644 --- a/src/interfaces/ecpg/lib/execute.c +++ b/src/interfaces/ecpg/lib/execute.c @@ -1,4 +1,4 @@ -/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.36 2002/01/13 08:52:08 meskes Exp $ */ +/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.37 2002/06/12 12:06:53 meskes Exp $ */ /* * The aim is to get a simpler inteface to the database routines. @@ -700,7 +700,7 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var, break; #endif /* HAVE_LONG_LONG_INT_64 */ case ECPGt_float: - if (!(mallocedval = ECPGalloc(var->arrsize * 20, stmt->lineno))) + if (!(mallocedval = ECPGalloc(var->arrsize * 21, stmt->lineno))) return false; if (var->arrsize > 1) @@ -720,7 +720,7 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var, break; case ECPGt_double: - if (!(mallocedval = ECPGalloc(var->arrsize * 20, stmt->lineno))) + if (!(mallocedval = ECPGalloc(var->arrsize * 21, stmt->lineno))) return false; if (var->arrsize > 1) @@ -740,7 +740,7 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var, break; case ECPGt_bool: - if (!(mallocedval = ECPGalloc(var->arrsize * 20, stmt->lineno))) + if (!(mallocedval = ECPGalloc(var->arrsize * 2, stmt->lineno))) return false; if (var->arrsize > 1) -- cgit v1.2.3