X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=edit.c;h=02d18586e235835c6759d4c069dd0d28b9433bd6;hb=c6b9d35ed9361e4defab9762a7480d5126405ae9;hp=4360c1fc9847e966037f8cb648e8837e22b7a6f6;hpb=2ea77d3b2827ba23feb756ce2fb936565ae38998;p=apps%2Fmadmutt.git diff --git a/edit.c b/edit.c index 4360c1f..02d1858 100644 --- a/edit.c +++ b/edit.c @@ -17,6 +17,7 @@ #include #include #include +#include #include "mutt.h" #include "enter.h" @@ -374,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); }