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]
/
attach.c
diff --git
a/attach.c
b/attach.c
index
8b9cb82
..
8eeb71b
100644
(file)
--- a/
attach.c
+++ b/
attach.c
@@
-353,7
+353,7
@@
int mutt_is_autoview (BODY * b, const char *type)
if (!type)
snprintf (_type, sizeof (_type), "%s/%s", TYPE (b), b->subtype);
else
-
strncpy (_type, type, sizeof (_type)
);
+
m_strcpy(_type, sizeof(_type), type
);
mutt_check_lookup_list (b, _type, sizeof (_type));
type = _type;