Fix the bug that strings are copied to a null pointer. REL-09_00_0300
authorHiroshi Inoue <inoue@tpf.co.jp>
Sat, 21 May 2011 23:48:12 +0000 (23:48 +0000)
committerHiroshi Inoue <inoue@tpf.co.jp>
Sat, 21 May 2011 23:48:12 +0000 (23:48 +0000)
convert.c
version.h

index be8f5cb7798d52c5c899df4266672e255d84353d..49d6234197cf05f1e006f84053ad26a856e779b8 100644 (file)
--- 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 */
index 09659039bd244365acc30614f168dfbc1b34a873..ce5f4bc859ec16e94540ae78ea0439dbcd335b3a 100644 (file)
--- 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