diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2004-10-30 21:59:00 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2004-10-30 21:59:00 +0000 |
commit | d2a419177d377282a2ad09aff229574a02be223e (patch) | |
tree | 051152e9170dd8a881959c518405badad93a8ee3 /edit.c | |
parent | 41f3ecb8ba4e8c66c10737b90a8dfc547ed42d5a (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |