[dovecot-cvs]
dovecot/src/lib-storage/index index-mail-headers.c,1.12,1.13
cras at procontrol.fi
cras at procontrol.fi
Fri Oct 3 19:26:33 EEST 2003
Update of /home/cvs/dovecot/src/lib-storage/index
In directory danu:/tmp/cvs-serv14121/lib-storage/index
Modified Files:
index-mail-headers.c
Log Message:
get_header() returned values wrong
Index: index-mail-headers.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-mail-headers.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- index-mail-headers.c 21 Sep 2003 16:21:38 -0000 1.12
+++ index-mail-headers.c 3 Oct 2003 15:26:31 -0000 1.13
@@ -608,7 +608,8 @@
start = str_data(mail->data.header_data);
end = start + str_len(mail->data.header_data);
- for (p = start + hdr->value_idx; p != end; p++) {
+ start += hdr->value_idx;
+ for (p = start; p != end; p++) {
if (*p == '\n') {
if (p+1 == end || (p[1] != ' ' && p[1] != '\t'))
break;
More information about the dovecot-cvs
mailing list