[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Fix windows build



Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv6818/src/common

Modified Files:
	util.c 
Log Message:
Fix windows build

Index: util.c
===================================================================
RCS file: /home/or/cvsroot/src/common/util.c,v
retrieving revision 1.157
retrieving revision 1.158
diff -u -d -r1.157 -r1.158
--- util.c	27 Oct 2004 06:48:16 -0000	1.157
+++ util.c	27 Oct 2004 18:14:38 -0000	1.158
@@ -2346,7 +2346,7 @@
   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;
 }