[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Compilation fixes for win32 version detection.
Update of /home/or/cvsroot/tor/src/common
In directory moria.mit.edu:/tmp/cvs-serv31556/src/common
Modified Files:
compat.c
Log Message:
Compilation fixes for win32 version detection.
Index: compat.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/compat.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- compat.c 19 Jan 2005 23:10:16 -0000 1.28
+++ compat.c 20 Jan 2005 19:03:09 -0000 1.29
@@ -569,7 +569,7 @@
} 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 @@
} 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