projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
14976cc
)
added Todd Miller's packf patch
author
Doug Morris
<doug@mhost.com>
Tue, 28 Mar 2000 14:42:36 +0000
(14:42 +0000)
committer
Doug Morris
<doug@mhost.com>
Tue, 28 Mar 2000 14:42:36 +0000
(14:42 +0000)
ChangeLog
patch
|
blob
|
history
uip/dropsbr.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index
9caf15e
..
b03b6e6
100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,3
+1,14
@@
+Tue Mar 28 16:17:39 2000 Doug Morris <doug@mhost.com>
+
+ * applied Todd Miller's <Todd.Miller@courtesan.com> patch to
+ dropsbr.c to prevent core dumping on packf. Here's the note
+ from his message:
+
+ Since sizeof(buffer) == sizeof(tmpbuffer) packf will dump
+ core on a file w/o a From line with a line >= BUFSIZ.
+ I noticed this because I had a junk file in my mail
+ spool somehow.
+
Fri Mar 17 11:59:33 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
* wesley.craig@umich.edu did not document his previous KPOP patch,
Fri Mar 17 11:59:33 2000 Dan Harkless <dan-nmh@dilvish.speed.net>
* wesley.craig@umich.edu did not document his previous KPOP patch,
diff --git
a/uip/dropsbr.c
b/uip/dropsbr.c
index
857263a
..
cc35f5f
100644
(file)
--- a/
uip/dropsbr.c
+++ b/
uip/dropsbr.c
@@
-408,8
+408,7
@@
mbx_copy (char *mailbox, int mbx_style, int md, int fd,
strncpy(tmpbuffer, buffer, sizeof(tmpbuffer));
ep = "nobody@nowhere";
tp = dctime(dlocaltimenow());
strncpy(tmpbuffer, buffer, sizeof(tmpbuffer));
ep = "nobody@nowhere";
tp = dctime(dlocaltimenow());
- snprintf (buffer, sizeof(buffer), "From %s %s", ep, tp);
- strcat (buffer, tmpbuffer);
+ snprintf (buffer, sizeof(buffer), "From %s %s%s", ep, tp, tmpbuffer);
}
}
}
}