aboutsummaryrefslogtreecommitdiff
path: root/src/smtp.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-03-31 04:47:45 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-03-31 04:47:45 +0000
commit16bf2f2bd6dce510de8b3d6472ef9f4e0d30c255 (patch)
tree6538f198ece73e20505ee2b973fdf6372f85dc21 /src/smtp.c
parenta778f4039a582a81a0a88c8401bdc1dfc2d9b7e5 (diff)
fixed broken PLAIN authentication.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@196 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/smtp.c')
-rw-r--r--src/smtp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/smtp.c b/src/smtp.c
index 1c872b8c..57a3abbf 100644
--- a/src/smtp.c
+++ b/src/smtp.c
@@ -325,11 +325,11 @@ static gint smtp_auth_plain(SMTPSession *session)
session->auth_type = SMTPAUTH_PLAIN;
/*
- * construct the string: \0<user>\0<pass>\0
+ * construct the string: \0<user>\0<pass>
*/
- authlen = 1 + strlen(session->user) + 1 + strlen(session->pass) + 1;
- authstr = g_malloc(authlen);
+ authlen = 1 + strlen(session->user) + 1 + strlen(session->pass);
+ authstr = g_malloc(authlen + 1);
p = authstr;