diff options
Diffstat (limited to 'winsup/cygwin/uinfo.cc')
-rw-r--r-- | winsup/cygwin/uinfo.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index 0ee38f791..894132658 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -450,7 +450,7 @@ cygheap_user::env_systemroot (const char *name, size_t namelen) { int size = GetWindowsDirectory (NULL, 0); if (size > 0) - { + { psystemroot = (char *) cmalloc (HEAP_STR, ++size); size = GetWindowsDirectory (psystemroot, size); if (size <= 0) @@ -460,7 +460,7 @@ cygheap_user::env_systemroot (const char *name, size_t namelen) } } if (size <= 0) - debug_printf ("GetWindowsDirectory(), %E"); + debug_printf ("GetWindowsDirectory(), %E"); } return psystemroot; } |