Applied Lee Kindness' patch to fix one of memory allocation with floating point numbers.
authorMichael Meskes <[email protected]>
Wed, 12 Jun 2002 12:06:53 +0000 (12:06 +0000)
committerMichael Meskes <[email protected]>
Wed, 12 Jun 2002 12:06:53 +0000 (12:06 +0000)
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/lib/execute.c

index 2b05d3de38e25dc59d2acf111820db746ab45e26..686114b5ae2694494976d565f3e67e738e1f1629 100644 (file)
@@ -1260,6 +1260,11 @@ Mon May 20 10:58:36 CEST 2002
        - Fixed some parser bugs.
        - Removed some simple rules to work arounf bison limit for now.
        - Update c_keywords.c to reflect changes in keywords.c.
+
+Wed Jun 12 14:04:11 CEST 2002
+
+       - Applied Lee Kindness' patch to fix one of memory allocation with
+         floating point numbers.
        - Set ecpg version to 2.10.0.
        - Set library version to 3.4.0.
 
index 8e69b2f0432c23cbdfafcf329a31f438f56f98df..e4988aa4ad60c9da6e0421d5f9d8c8e9b53ce522 100644 (file)
@@ -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)