"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/builtin/io.bi" between
mailfromd-8.11.tar.xz and mailfromd-8.12.tar.xz

About: Mailfromd is a general-purpose mail filtering daemon for Sendmail, Postfix and MeTA1 (interfaces with the MTA using Milter or PMilter protocols).

io.bi  (mailfromd-8.11.tar.xz):io.bi  (mailfromd-8.12.tar.xz)
skipping to change at line 105 skipping to change at line 105
for (;;) { for (;;) {
if (str->bufsize == i) { if (str->bufsize == i) {
if (str->bufsize == 0) if (str->bufsize == 0)
str->bufsize = 16; str->bufsize = 16;
str->buf = mu_2nrealloc(str->buf, &str->bufsize, str->buf = mu_2nrealloc(str->buf, &str->bufsize,
sizeof str->buf[1]); sizeof str->buf[1]);
} }
rc = read(fd, str->buf + i, 1); rc = read(fd, str->buf + i, 1);
if (rc == -1) if (rc == -1)
return -1; return -1;
else if (rc == 0) else if (rc == 0) {
return 0; if (i > 0)
str->buf[i] = 0;
break;
}
i++; i++;
if (i >= delim_len && if (i >= delim_len &&
memcmp(str->buf + i - delim_len, delim, delim_len) == 0) { memcmp(str->buf + i - delim_len, delim, delim_len) == 0) {
str->buf[i - delim_len] = 0; str->buf[i - delim_len] = 0;
break; break;
} }
} }
return i; return i;
} }
 End of changes. 1 change blocks. 
2 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)