From 18007c3390f56fb1d0fd87e298686d3e9834bd7f Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Sat, 21 May 2011 23:48:12 +0000 Subject: [PATCH] Fix the bug that strings are copied to a null pointer. --- convert.c | 2 +- version.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/convert.c b/convert.c index be8f5cb..49d6234 100644 --- a/convert.c +++ b/convert.c @@ -4425,7 +4425,7 @@ mylog("buf=%p flag=%d\n", buf, qb->flags); } else if ('-' == param_string[0] && '1' == param_string[1]) - strcpy(buf, "1"); + strcpy(param_string, "1"); break; } /* it was a SQL_C_CHAR */ diff --git a/version.h b/version.h index 0965903..ce5f4bc 100644 --- a/version.h +++ b/version.h @@ -9,9 +9,9 @@ #ifndef __VERSION_H__ #define __VERSION_H__ -#define POSTGRESDRIVERVERSION "09.00.0300" -#define POSTGRES_RESOURCE_VERSION "09.00.0300\0" -#define PG_DRVFILE_VERSION 9,0,03,00 -#define PG_BUILD_VERSION "201105040001" +#define POSTGRESDRIVERVERSION "09.00.0301" +#define POSTGRES_RESOURCE_VERSION "09.00.0301\0" +#define PG_DRVFILE_VERSION 9,0,03,01 +#define PG_BUILD_VERSION "201105220001" #endif -- 2.39.5