From 9374c8e701dcb61a46c89a854235d91a23bf672e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 26 Jul 2019 20:02:16 +0300 Subject: warning fixes --- protocols/NewsAggregator/Src/Utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/NewsAggregator/Src/Utils.cpp') diff --git a/protocols/NewsAggregator/Src/Utils.cpp b/protocols/NewsAggregator/Src/Utils.cpp index 29c2017b66..00144af250 100644 --- a/protocols/NewsAggregator/Src/Utils.cpp +++ b/protocols/NewsAggregator/Src/Utils.cpp @@ -87,7 +87,7 @@ void GetNewsData(wchar_t *tszUrl, char **szData, MCONTACT hContact, CFeedEditor if (nlhrReply->resultCode == 200 && nlhrReply->dataLength > 0) { Netlib_LogfW(hNetlibUser, L"Code 200: Succeeded getting feed data %s.", tszUrl); // allocate memory and save the retrieved data - *szData = (char *)mir_alloc((size_t)(nlhrReply->dataLength + 2)); + *szData = (char *)mir_alloc((size_t)nlhrReply->dataLength + 2); memcpy(*szData, nlhrReply->pData, (size_t)nlhrReply->dataLength); (*szData)[nlhrReply->dataLength] = 0; } @@ -132,7 +132,7 @@ time_t DateToUnixTime(const char *stamp, bool FeedType) if (strchr(p, ',')) { strtok(p, ","); p = strtok(nullptr, ","); - sscanf(p + 1, "%d %3s %d %d:%d:%d %1s%02d%02d", &day, &monthstr, &year, &hour, &min, &sec, &timezonesign, &timezoneh, &timezonem); + sscanf(p + 1, "%d %3s %d %d:%d:%d %1s%02d%02d", &day, monthstr, &year, &hour, &min, &sec, timezonesign, &timezoneh, &timezonem); if (!mir_strcmpi(monthstr, "Jan")) month = 1; if (!mir_strcmpi(monthstr, "Feb")) -- cgit v1.2.3