summaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-27 18:14:38 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-27 18:14:38 +0000
commit6874c3990426ca4efd4e88796854f2bab60df54d (patch)
tree769be37eec77b9849dd88657985e7a3bda30701c /src/common/util.c
parentc5eb95b644284f3fc40d65e305386b84f65b92a2 (diff)
downloadtor-6874c3990426ca4efd4e88796854f2bab60df54d.tar.gz
tor-6874c3990426ca4efd4e88796854f2bab60df54d.zip
Fix windows build
svn:r2613
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 e50d203130..3aa6d0bdd9 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -2346,7 +2346,7 @@ int tor_vsnprintf(char *str, size_t size, const char *format, va_list args)
r = vsnprintf(str, size, format, args);
#endif
str[size-1] = '\0';
- if (r < 0 || r >= size)
+ if (r < 0 || ((size_t)r) >= size)
return -1;
return r;
}