openchange: don't overflow possible recipient type while creating message headers

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
This commit is contained in:
Kamen Mazdrashki
2014-06-02 01:20:18 +02:00
committed by Julio García
parent 4b383705ff
commit 2792baac02

View File

@@ -561,7 +561,7 @@ FillMessageHeadersFromProperties (NGMutableHashMap *headers,
bccLimit = MAPI_BCC;
else
bccLimit = MAPI_CC;
bccLimit++;
for (type = MAPI_TO; type <= bccLimit; type++)
{
recId = recTypes[type];