X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=edit.c;h=02d18586e235835c6759d4c069dd0d28b9433bd6;hp=07bc98d44d9d2fbd3d7b23e7ed3c7542f7bc0b9a;hb=c6b9d35ed9361e4defab9762a7480d5126405ae9;hpb=ee869a42bc5677da8e3602ec1947af1736786648 diff --git a/edit.c b/edit.c index 07bc98d..02d1858 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); }