X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Ffiltertest.c;h=a2a60a8dd8a5be996aa58bfbb025b634fdee5ca0;hb=dbbc1c20b59dc10368e31a7c81f110eb40b36494;hp=f3d3acc522a35c8dc931e36f5c501f4db91dd403;hpb=8768d5483a5894400ae1f70cda1beb44ed9b087c;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/filtertest.c b/src/src/filtertest.c index f3d3acc52..a2a60a8dd 100644 --- a/src/src/filtertest.c +++ b/src/src/filtertest.c @@ -95,7 +95,7 @@ if (!dot_ended && !feof(stdin)) if (s > message_body_end + message_body_visible) s = message_body_end; message_size++; } - READ_END: ch = ch; /* Some compilers don't like null statements */ + READ_END: ; } if (s == message_body_end || s[-1] != '\n') body_linecount++; } @@ -112,7 +112,7 @@ if (body_len >= message_body_visible) int above = message_body_visible - below; if (above > 0) { - uschar *temp = store_get(below); + uschar *temp = store_get(below, TRUE); memcpy(temp, message_body_end, below); memmove(message_body_end, s+1, above); memcpy(message_body_end + above, temp, below); @@ -178,7 +178,7 @@ if (fstat(fd, &statbuf) != 0) return FALSE; } -filebuf = store_get(statbuf.st_size + 1); +filebuf = store_get(statbuf.st_size + 1, is_tainted(filename)); rc = read(fd, filebuf, statbuf.st_size); (void)close(fd);