diff options
Diffstat (limited to 'lib-src/movemail.c')
-rw-r--r-- | lib-src/movemail.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c index a391a9dd783..60b10b27b43 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c @@ -185,7 +185,8 @@ main (argc, argv) to bug-gnu-emacs@prep.ai.mit.edu so we can fix it. */ lockname = concat (inname, ".lock", ""); - tempname = strcpy (xmalloc (strlen (inname)+1), inname); + tempname = (char *) xmalloc (strlen (inname) + strlen ("EXXXXXX") + 1); + strcpy (tempname, inname); p = tempname + strlen (tempname); while (p != tempname && p[-1] != '/') p--; |