aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-09-24 14:16:55 -0400
committerNick Mathewson <nickm@torproject.org>2010-09-24 14:16:55 -0400
commitd073d7d4ebd461a1550595d0180f0367b67bcc16 (patch)
tree99e186ecc50ba5f4a19c2ba122feb63daf8a631f /src/common/util.c
parentaa7f55c45f942f45692c4a99e6fe1d5784609509 (diff)
downloadtor-d073d7d4ebd461a1550595d0180f0367b67bcc16.tar.gz
tor-d073d7d4ebd461a1550595d0180f0367b67bcc16.zip
Consistency issues in load_windows_system_library patch. Thanks Sebastian
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 12be008745..caedc5e2d9 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -2800,7 +2800,7 @@ load_windows_system_library(const TCHAR *library_name)
{
TCHAR path[MAX_PATH];
unsigned n;
- n = GetSystemDirectory(path, 1024);
+ n = GetSystemDirectory(path, MAX_PATH);
if (n == 0 || n + _tcslen(library_name) + 2 >= MAX_PATH)
return 0;
_tcscat(path, TEXT("\\"));