X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=edit.c;h=37b46f20cdf81bb7b638407cf086410bec51511c;hb=1c16e9623a9fb6a15bb284a6f7322b583ebc06a7;hp=07bc98d44d9d2fbd3d7b23e7ed3c7542f7bc0b9a;hpb=ae0ce4dfcafa0c3820f107c5bfa8bd06e5272b57;p=apps%2Fmadmutt.git diff --git a/edit.c b/edit.c index 07bc98d..37b46f2 100644 --- a/edit.c +++ b/edit.c @@ -375,7 +375,7 @@ int mutt_builtin_editor (const char *path, HEADER * msg, HEADER * cur) break; case 'r': if (*p) { - strncpy (tmp, p, sizeof (tmp)); + m_strcpy(tmp, sizeof(tmp), p); mutt_expand_path (tmp, sizeof (tmp)); buf = be_snarf_file (tmp, buf, &bufmax, &buflen, 1); } @@ -440,7 +440,7 @@ int mutt_builtin_editor (const char *path, HEADER * msg, HEADER * cur) else if (m_strcmp(".", tmp) == 0) done = 1; else { - str_cat (tmp, sizeof (tmp), "\n"); + m_strcat(tmp, sizeof(tmp), "\n"); if (buflen == bufmax) p_realloc(&buf, bufmax += 25); buf[buflen++] = m_strdup(tmp[1] == '~' ? tmp + 1 : tmp);