Article View: gnu.emacs.bug
Article #730movemail.c -- tempname too short
From: David S. Browning
Date: Tue, 01 Sep 1992 05:48
Date: Tue, 01 Sep 1992 05:48
28 lines
1684 bytes
1684 bytes
Consider the following code fragments from etc/movemail.c. This copy of movemail.c was taken from Epoch 4.0 Patchlevel 1, which supposedly is from Gnu Emacs 18.58. char tempname[40]; . . . inname = argv[1]; . . . strcpy (tempname, inname); Obviously, this causes problems if inname (typically a mail spool file) is longer than 40 characters long. This happened to me. Using Kyle Jones' mail reader, VM 5.32 beta, I read mail from "custom" spool files away from the system spool directory. This is because I have processed my incoming mail with procmail. I think a hardcoded length of 40 characters for inname is a bug. Please pick something more reasonable or use malloc. -- David |============================================================================| | Internet: browning@willard.nas.nasa.gov Phone: (415) 604-4321 | | UUCP: uunet!ames!nas.nasa.gov!browning | |----------------------------------------------------------------------------| |"the nice thing about true hopelessness is that you don't have to try again"| | -- jules shear | |============================================================================|
Technical Details
Message-ID:
<9209011948.AA02747@willard.nas.nasa.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!nas.nasa.gov!browningShow Full Headers
Complete Article Headers
Newsgroups: gnu.emacs.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!nas.nasa.gov!browning From: browning@nas.nasa.gov (David S. Browning) Subject: movemail.c -- tempname too short Message-ID: <9209011948.AA02747@willard.nas.nasa.gov> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Tue, 1 Sep 1992 05:48:24 GMT Approved: bug-gnu-emacs@prep.ai.mit.edu Lines: 30