1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-07 23:27:48 +02: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:
Werner Koch 2002-10-28 17:32:55 +00:00
parent 4884931476
commit 4be5257f2c
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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;