diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-03-31 04:47:45 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-03-31 04:47:45 +0000 |
commit | 16bf2f2bd6dce510de8b3d6472ef9f4e0d30c255 (patch) | |
tree | 6538f198ece73e20505ee2b973fdf6372f85dc21 /src/smtp.c | |
parent | a778f4039a582a81a0a88c8401bdc1dfc2d9b7e5 (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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |