summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog-99b7
-rw-r--r--ace/Configuration.cpp6
2 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog-99b b/ChangeLog-99b
index f3c3caf3c72..907fdf84d29 100644
--- a/ChangeLog-99b
+++ b/ChangeLog-99b
@@ -1,3 +1,10 @@
+Mon Dec 6 21:13:08 1999 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
+
+ * ace/Configuration.cpp (set_string_value): When setting a value
+ in the registry, the specified length must include the NUL
+ terminating character. Thanks to Chris Hafey
+ <chris@stentorsoft.com> for reporting this.
+
Mon Dec 6 11:06:43 1999 Ossama Othman <othman@cs.wustl.edu>
* m4/acinclude.m4 (ACE_TRY_COMPILE):
diff --git a/ace/Configuration.cpp b/ace/Configuration.cpp
index cb23b17f23c..32f6d79a67b 100644
--- a/ace/Configuration.cpp
+++ b/ace/Configuration.cpp
@@ -535,8 +535,8 @@ ACE_Configuration_Win32Registry::set_string_value (const ACE_Configuration_Secti
name,
0,
REG_SZ,
- (BYTE*)value.rep (),
- value.length ()) != ERROR_SUCCESS)
+ (BYTE *) value.rep (),
+ value.length () + 1) != ERROR_SUCCESS)
return -2;
return 0;
@@ -558,7 +558,7 @@ ACE_Configuration_Win32Registry::set_integer_value (const ACE_Configuration_Sect
name,
0,
REG_DWORD,
- (BYTE*)&value,
+ (BYTE *) &value,
sizeof (value)) != ERROR_SUCCESS)
return -2;