1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +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

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