summaryrefslogtreecommitdiffstats
path: root/edit.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2004-10-30 21:59:00 +0000
committerThomas Roessler <roessler@does-not-exist.org>2004-10-30 21:59:00 +0000
commitd2a419177d377282a2ad09aff229574a02be223e (patch)
tree051152e9170dd8a881959c518405badad93a8ee3 /edit.c
parent41f3ecb8ba4e8c66c10737b90a8dfc547ed42d5a (diff)
safe_strcat, safe_strncat. Thanks to Ulf H. for noting the wrong
use of strncat in part of the mutt code base.
Diffstat (limited to 'edit.c')
-rw-r--r--edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/edit.c b/edit.c
index e29cb669..c6b9ba76 100644
--- a/edit.c
+++ b/edit.c
@@ -463,7 +463,7 @@ int mutt_builtin_editor (const char *path, HEADER *msg, HEADER *cur)
done = 1;
else
{
- strncat (tmp, "\n", sizeof(tmp)); tmp[sizeof(tmp) - 1] = '\0';
+ safe_strcat (tmp, sizeof (tmp), "\n");
if (buflen == bufmax)
safe_realloc (&buf, sizeof (char *) * (bufmax += 25));
buf[buflen++] = safe_strdup (tmp[1] == '~' ? tmp + 1 : tmp);