diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-01-20 19:03:09 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-01-20 19:03:09 +0000 |
commit | 29b6637a6223901765d431dd6569f0c16aef2a55 (patch) | |
tree | 80f12650095a163b47e5392c748e0171307e8e1b /src/common | |
parent | 432e313c8130e68ba7132d093ea253c2c509469a (diff) | |
download | tor-29b6637a6223901765d431dd6569f0c16aef2a55.tar.gz tor-29b6637a6223901765d431dd6569f0c16aef2a55.zip |
Compilation fixes for win32 version detection.
svn:r3385
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/compat.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 6a2be5fc09..17338dd16a 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -569,7 +569,7 @@ get_uname(void) } else { for (i=0; win_version_table[i].major>=0; ++i) { if (win_version_table[i].major == info.dwMajorVersion && - win_version_table[i].minor == info.dwMinorversion) { + win_version_table[i].minor == info.dwMinorVersion) { plat = win_version_table[i].version; break; } @@ -580,10 +580,12 @@ get_uname(void) } else { if (info.dwMajorVersion > 5 || (info.dwMajorVersion==5 && info.dwMinorVersion>2)) - tor_snprintf("Very recent version of Windows [major=%d,minor=%d]", + tor_snprintf(uname_result, sizeof(uname_result), + "Very recent version of Windows [major=%d,minor=%d]", (int)info.dwMajorVersion,(int)info.dwMinorVersion); else - tor_snprintf("Unrecognized version of Windows [major=%d,minor=%d]", + tor_snprintf(uname_result, sizeof(uname_result), + "Unrecognized version of Windows [major=%d,minor=%d]", (int)info.dwMajorVersion,(int)info.dwMinorVersion); } #else |