From 11861b044fa1f65f6145551c5f1d3c92b68f7c03 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=B6khan=20=C5=9Eeng=C3=BCn?= <gsengun@linux-5d7d.site>
Date: Fri, 30 Mar 2012 23:19:38 +0300
Subject: [PATCH 2/2] replace hard coded md5 digest length (16) with
 preprocessor constant

---
 lib/smtp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/smtp.c b/lib/smtp.c
index 08fe86f..45dec6a 100644
--- a/lib/smtp.c
+++ b/lib/smtp.c
@@ -743,8 +743,8 @@ static CURLcode smtp_state_authcram_resp(struct connectdata *conn,
   size_t len = 0;
   char *rplyb64 = NULL;
   HMAC_context *ctxt;
-  unsigned char digest[16];
-  char reply[MAX_CURL_USER_LENGTH + 32 /* 2 * size of MD5 digest */ + 1];
+  unsigned char digest[MD5_DIGEST_LEN];
+  char reply[MAX_CURL_USER_LENGTH + 2 * MD5_DIGEST_LEN + 1];
 
   (void)instate; /* no use for this yet */
 
-- 
1.7.7

