commit 3b93b188232e8a7fd552da8dee541e3a8284243b
parent 84076b9bbd3642bfb493d4add15c5a02a324d9c6
Author: Colin Leroy <colin@colino.net>
Date: Tue, 4 Nov 2008 21:31:51 +0000
2008-11-04 [colin] 3.6.1cvs16
* src/common/w32_reg.c
Fix off-by-one
Diffstat:
4 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-04 [colin] 3.6.1cvs16
+
+ * src/common/w32_reg.c
+ Fix off-by-one
+
2008-11-04 [colin] 3.6.1cvs15
* src/procmime.c
diff --git a/PATCHSETS b/PATCHSETS
@@ -3597,3 +3597,4 @@
( cvs diff -u -r 1.83.2.145 -r 1.83.2.146 src/mimeview.c; cvs diff -u -r 1.20.2.26 -r 1.20.2.27 src/mimeview.h; cvs diff -u -r 1.96.2.208 -r 1.96.2.209 src/textview.c; cvs diff -u -r 1.12.2.24 -r 1.12.2.25 src/textview.h; ) > 3.6.1cvs13.patchset
( cvs diff -u -r 1.65.2.62 -r 1.65.2.63 src/codeconv.c; ) > 3.6.1cvs14.patchset
( cvs diff -u -r 1.274.2.285 -r 1.274.2.286 src/mainwindow.c; cvs diff -u -r 1.83.2.146 -r 1.83.2.147 src/mimeview.c; cvs diff -u -r 1.204.2.181 -r 1.204.2.182 src/prefs_common.c; cvs diff -u -r 1.103.2.116 -r 1.103.2.117 src/prefs_common.h; cvs diff -u -r 1.3.2.23 -r 1.3.2.24 src/prefs_ext_prog.c; cvs diff -u -r 1.49.2.118 -r 1.49.2.119 src/procmime.c; cvs diff -u -r 1.96.2.209 -r 1.96.2.210 src/textview.c; cvs diff -u -r 1.36.2.153 -r 1.36.2.154 src/common/utils.c; cvs diff -u -r 1.1.2.2 -r 1.1.2.3 src/common/w32_reg.c; cvs diff -u -r 1.1.2.4 -r 1.1.2.5 src/common/w32lib.h; ) > 3.6.1cvs15.patchset
+( cvs diff -u -r 1.1.2.3 -r 1.1.2.4 src/common/w32_reg.c; ) > 3.6.1cvs16.patchset
diff --git a/configure.ac b/configure.ac
@@ -11,7 +11,7 @@ MINOR_VERSION=6
MICRO_VERSION=1
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=15
+EXTRA_VERSION=16
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=
diff --git a/src/common/w32_reg.c b/src/common/w32_reg.c
@@ -53,7 +53,7 @@ int write_w32_registry_string( char *parent, char *section, char *value, char *d
debug_print("can't write key %s\\%s: %d\n", parent, section, ret);
return -1;
}
- ret = RegSetValueEx(hKey, value, 0, REG_SZ, (LPVOID)data, strlen(data));
+ ret = RegSetValueEx(hKey, value, 0, REG_SZ, (LPVOID)data, strlen(data)+1);
if (ret != ERROR_SUCCESS) {
RegCloseKey(hKey);
debug_print("can't write key %s\\%s: %d\n", parent, section, ret);