[dovecot-cvs] dovecot/src/lib-imap imap-parser.c,1.40,1.41

cras at procontrol.fi cras at procontrol.fi
Fri Feb 14 11:08:08 EET 2003


Update of /home/cvs/dovecot/src/lib-imap
In directory danu:/tmp/cvs-serv12898

Modified Files:
	imap-parser.c 
Log Message:
show proper error message to 8bit chars



Index: imap-parser.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-imap/imap-parser.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- imap-parser.c	14 Feb 2003 09:06:43 -0000	1.40
+++ imap-parser.c	14 Feb 2003 09:08:06 -0000	1.41
@@ -258,7 +258,7 @@
 
 static int is_valid_atom_char(struct imap_parser *parser, char chr)
 {
-	if (IS_ATOM_SPECIAL(chr)) {
+	if (IS_ATOM_SPECIAL((unsigned char)chr)) {
 		parser->error = "Invalid characters in atom";
 		return FALSE;
 	} else if ((chr & 0x80) != 0) {




More information about the dovecot-cvs mailing list