summaryrefslogtreecommitdiff
path: root/mail/exim-old/files/patch-src::expand.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/exim-old/files/patch-src::expand.c')
-rw-r--r--mail/exim-old/files/patch-src::expand.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/mail/exim-old/files/patch-src::expand.c b/mail/exim-old/files/patch-src::expand.c
new file mode 100644
index 000000000000..60de46082f1b
--- /dev/null
+++ b/mail/exim-old/files/patch-src::expand.c
@@ -0,0 +1,15 @@
+--- src/expand.c.orig Tue Feb 19 12:10:43 2002
++++ src/expand.c Wed Apr 3 18:11:56 2002
+@@ -572,10 +572,9 @@
+ lseek(deliver_datafile, start_offset, SEEK_SET);
+ len = read(deliver_datafile, body, len);
+ if (len >= 0) body[len] = 0;
+- while (*body != 0)
++ while (len > 0)
+ {
+- if (*body == '\n') *body = ' ';
+- body++;
++ if (body[--len] == '\n' || body[len] == 0) body[len] = ' ';
+ }
+ }
+ return (*ss == NULL)? "" : *ss;