summary refs log tree commit diff stats
path: root/src/common/outbound.c
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2014-12-15 10:25:28 -0800
committerArnavion <arnavion@gmail.com>2014-12-15 10:25:28 -0800
commitec7a0d6e13f0fa66299cab7fdad8e639e01ee9dd (patch)
tree9cd90ef8d8411f0278b69ac3155be60b7ff99643 /src/common/outbound.c
parenta86b03e939391f3567cc644800e1b13dceda1139 (diff)
Fixed some more signed-unsigned-comparison warnings.
Diffstat (limited to 'src/common/outbound.c')
-rw-r--r--src/common/outbound.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c
index 8181bd8a..a193d03e 100644
--- a/src/common/outbound.c
+++ b/src/common/outbound.c
@@ -4147,7 +4147,7 @@ help (session *sess, char *tbuf, char *helpcmd, int quiet)
  * - this beast is used for UserCommands, UserlistButtons and CTCP replies   */
 
 int
-auto_insert (char *dest, int destlen, unsigned char *src, char *word[],
+auto_insert (char *dest, gsize destlen, unsigned char *src, char *word[],
 				 char *word_eol[], char *a, char *c, char *d, char *e, char *h,
 				 char *n, char *s, char *u)
 {
@@ -4219,7 +4219,7 @@ auto_insert (char *dest, int destlen, unsigned char *src, char *word[],
 				switch (src[0])
 				{
 				case '%':
-					if ((dest - orig) + 2 >= destlen)
+					if ((dest - orig) + 2u >= destlen)
 						return 2;
 					dest[0] = '%';
 					dest[1] = 0;