summaryrefslogtreecommitdiffstats
path: root/mutt_idna.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2005-10-31 10:51:54 +0000
committerThomas Roessler <roessler@does-not-exist.org>2005-10-31 10:51:54 +0000
commit40cf8e65b6164c937dd86b7c4993153aeec3c5e1 (patch)
treed332de1b61cd4dd9b2573cdd144ea5a3a29dd08c /mutt_idna.c
parent419244b548317a2d54bcbfe88d819dffc1fdc39c (diff)
Fix the underlying problem behind mutt/2107.
Diffstat (limited to 'mutt_idna.c')
-rw-r--r--mutt_idna.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mutt_idna.c b/mutt_idna.c
index c2db3257..36915a45 100644
--- a/mutt_idna.c
+++ b/mutt_idna.c
@@ -132,7 +132,7 @@ static int mbox_to_udomain (const char *mbx, char **user, char **domain)
*domain = NULL;
p = strchr (mbx, '@');
- if (!p)
+ if (!p || !p[1])
return -1;
*user = safe_calloc((p - mbx + 1), sizeof(mbx[0]));
strfcpy (*user, mbx, (p - mbx + 1));