projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
less horrible strncpy's
[apps/madmutt.git]
/
edit.c
diff --git
a/edit.c
b/edit.c
index
07bc98d
..
02d1858
100644
(file)
--- 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) {
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);
}
mutt_expand_path (tmp, sizeof (tmp));
buf = be_snarf_file (tmp, buf, &bufmax, &buflen, 1);
}