diff options
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; |