changeset 601:3db1540d4b97

*** empty log message ***
author Richard M. Stallman <rms@gnu.org>
date Sat, 28 Mar 1992 21:00:42 +0000
parents a8d78999e46d
children d2de231ee7f5
files lib-src/movemail.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/movemail.c	Wed Mar 25 09:20:50 1992 +0000
+++ b/lib-src/movemail.c	Sat Mar 28 21:00:42 1992 +0000
@@ -104,7 +104,7 @@
   long now;
   int tem;
   char *lockname, *p;
-  char tempname[40];
+  char *tempname;
   int desc;
 #endif /* not MAIL_USE_FLOCK */
 
@@ -182,6 +182,7 @@
      to bug-gnu-emacs@prep.ai.mit.edu so we can fix it.  */
 
   lockname = concat (inname, ".lock", "");
+  tempname = (char *) xmalloc (strlen (inname) + 20);
   strcpy (tempname, inname);
   p = tempname + strlen (tempname);
   while (p != tempname && p[-1] != '/')