projects
/
apps
/
madmutt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b3cb6ed
)
fix segfault
author
Pierre Habouzit
<madcoder@debian.org>
Sat, 28 Oct 2006 23:03:25 +0000
(
01:03
+0200)
committer
Pierre Habouzit
<madcoder@debian.org>
Sat, 28 Oct 2006 23:03:25 +0000
(
01:03
+0200)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
mutt_idna.c
patch
|
blob
|
history
diff --git
a/mutt_idna.c
b/mutt_idna.c
index
0918f7c
..
5078717
100644
(file)
--- a/
mutt_idna.c
+++ b/
mutt_idna.c
@@
-131,7
+131,7
@@
static int mbox_to_udomain (const char *mbx, char **user, char **domain)
p = strchr (mbx, '@');
if (!p || !p[1])
return -1;
p = strchr (mbx, '@');
if (!p || !p[1])
return -1;
- *user = p_dupstr(mbx
[0]
, p - mbx);
+ *user = p_dupstr(mbx, p - mbx);
*domain = str_dup (p + 1);
return 0;
}
*domain = str_dup (p + 1);
return 0;
}