[dovecot-cvs] dovecot/src/lib-mail message-header-search.c,1.2,1.3
cras at procontrol.fi
cras at procontrol.fi
Tue Nov 26 12:14:32 EET 2002
Update of /home/cvs/dovecot/src/lib-mail
In directory danu:/tmp/cvs-serv25842/lib-mail
Modified Files:
message-header-search.c
Log Message:
Fixed a few compiling warnings about signedness.
Index: message-header-search.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-mail/message-header-search.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- message-header-search.c 13 Nov 2002 11:08:18 -0000 1.2
+++ message-header-search.c 26 Nov 2002 10:14:29 -0000 1.3
@@ -92,7 +92,8 @@
const unsigned char *p, *encoding, *text, *new_end;
const char *charset;
unsigned char *buf;
- ssize_t size, buf_size;
+ ssize_t size;
+ size_t buf_size;
int ok, ret;
/* first split the string =?charset?encoding?text?= */
@@ -134,7 +135,7 @@
size = (ssize_t) (end - text);
- buf_size = size;
+ buf_size = (size_t)size;
buf = t_malloc(buf_size);
if (*encoding == 'Q')
@@ -144,7 +145,7 @@
if (size >= 0) {
/* non-corrupted encoding */
- ret = match_data(buf, size, charset, ctx);
+ ret = match_data(buf, (size_t)size, charset, ctx);
t_pop();
return ret;
}
More information about the dovecot-cvs
mailing list