projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
indent is a fool
[apps/madmutt.git]
/
sendlib.c
diff --git
a/sendlib.c
b/sendlib.c
index
b06696f
..
7c22e2b
100644
(file)
--- a/
sendlib.c
+++ b/
sendlib.c
@@
-929,13
+929,9
@@
int mutt_lookup_mime_type (BODY * att, const char *path)
sze = m_strlen(p);
if ((sze > cur_sze) && (szf >= sze) &&
(m_strcasecmp(path + szf - sze, p) == 0
sze = m_strlen(p);
if ((sze > cur_sze) && (szf >= sze) &&
(m_strcasecmp(path + szf - sze, p) == 0
- || ascii_strcasecmp (path + szf - sze, p) == 0) && (szf == sze
- || path[szf
- -
- sze
- -
- 1]
- == '.')) {
+ || ascii_strcasecmp (path + szf - sze, p) == 0)
+ && (szf == sze || path[szf - sze - 1] == '.'))
+ {
/* get the content-type */
if ((p = strchr (ct, '/')) == NULL) {
/* get the content-type */
if ((p = strchr (ct, '/')) == NULL) {