X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/3e93bafb95608467e438ba7f725fd1f020669f8c..eb0f65b4fbbea60100b53cb40a1d7138d47ad0d2:/lib-src/pop.c diff --git a/lib-src/pop.c b/lib-src/pop.c index ffe16c5f91..c6deaf73a2 100644 --- a/lib-src/pop.c +++ b/lib-src/pop.c @@ -1,6 +1,6 @@ /* pop.c: client routines for talking to a POP3-protocol post-office server -Copyright (C) 1991, 1993, 1996-1997, 1999, 2001-2014 Free Software +Copyright (C) 1991, 1993, 1996-1997, 1999, 2001-2015 Free Software Foundation, Inc. Author: Jonathan Kamens @@ -1397,8 +1397,7 @@ sendline (popserver server, const char *line) over a few dozen messages, and is a big chunk of the time we spend fetching mail from a server close by. */ buf = alloca (strlen (line) + 3); - strcpy (buf, line); - strcat (buf, "\r\n"); + strcpy (stpcpy (buf, line), "\r\n"); ret = fullwrite (server->file, buf, strlen (buf)); if (ret < 0)