mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-04 20:38:50 +01:00
* w32reg.c (read_w32_registry_string): Fixed expanding of the
environment buffer; didn't worked at all. Reported by Thijmen Klok.
This commit is contained in:
parent
4884931476
commit
4be5257f2c
@ -1,3 +1,9 @@
|
||||
2002-10-28 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* w32reg.c (read_w32_registry_string): Fixed expanding of the
|
||||
environment buffer; didn't worked at all. Reported by Thijmen
|
||||
Klok.
|
||||
|
||||
2002-10-28 Stefan Bellon <sbellon@sbellon.de>
|
||||
|
||||
* fileutil.c (make_basename) [__riscos__]: Cut off RISC OS' filing
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user