diff options
author | David Shaw <[email protected]> | 2002-11-06 22:51:44 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2002-11-06 22:51:44 +0000 |
commit | d771dd272dbb29ff076e4506045105931e015354 (patch) | |
tree | c35d4dce6219275ba5f130451784779ba6a34690 /util/w32reg.c | |
parent | * util.h: Add wipememory2() macro (same as wipememory, but can specify the (diff) | |
download | gnupg-d771dd272dbb29ff076e4506045105931e015354.tar.gz gnupg-d771dd272dbb29ff076e4506045105931e015354.zip |
* w32reg.c (read_w32_registry_string): Fixed expanding of the environment
buffer; didn't worked at all. Reported by Thijmen Klok. From Werner on
stable branch.
* secmem.c (secmem_free, secmem_term): Use wipememory2() instead of
memset() to overwrite secure memory
* iobuf.c (direct_open): Handle mode 'b' if O_BINARY is available. From
Werner on stable branch.
* fileutil.c: Comment from stable branch.
Diffstat (limited to '')
-rw-r--r-- | util/w32reg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/w32reg.c b/util/w32reg.c index 5391c8027..aa507b2d7 100644 --- a/util/w32reg.c +++ b/util/w32reg.c @@ -103,6 +103,7 @@ read_w32_registry_string( const char *root, const char *dir, const char *name ) nbytes = ExpandEnvironmentStrings (result, tmp, n1); if (nbytes && nbytes > n1) { free (tmp); + n1 = nbytes; tmp = malloc (n1 + 1); if (!tmp) goto leave; |