[dovecot-cvs] dovecot/src/lib-imap imap-util.c,1.5,1.6
cras at procontrol.fi
cras at procontrol.fi
Thu Jan 2 13:06:39 EET 2003
Update of /home/cvs/dovecot/src/lib-imap
In directory danu:/tmp/cvs-serv15215/lib-imap
Modified Files:
imap-util.c
Log Message:
imap_escape() was broken
Index: imap-util.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-imap/imap-util.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- imap-util.c 21 Dec 2002 22:02:58 -0000 1.5
+++ imap-util.c 2 Jan 2003 11:06:36 -0000 1.6
@@ -66,7 +66,7 @@
/* @UNSAFE: escape them */
p = ret = t_malloc(i + esc + 1);
for (; *str != '\0'; str++) {
- if (IS_ESCAPED_CHAR(str[i]))
+ if (IS_ESCAPED_CHAR(*str))
*p++ = '\\';
*p++ = *str;
}
More information about the dovecot-cvs
mailing list