projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rocco Rutte:
[apps/madmutt.git]
/
mutt_idna.c
diff --git
a/mutt_idna.c
b/mutt_idna.c
index
fd292f3
..
78fe7be
100644
(file)
--- a/
mutt_idna.c
+++ b/
mutt_idna.c
@@
-127,7
+127,7
@@
static int mbox_to_udomain (const char *mbx, char **user, char **domain)
*domain = NULL;
p = strchr (mbx, '@');
*domain = NULL;
p = strchr (mbx, '@');
- if (!p)
+ if (!p
|| !p[1]
)
return -1;
*user = mem_calloc ((p - mbx + 1), sizeof (mbx[0]));
strfcpy (*user, mbx, (p - mbx + 1));
return -1;
*user = mem_calloc ((p - mbx + 1), sizeof (mbx[0]));
strfcpy (*user, mbx, (p - mbx + 1));