summaryrefslogtreecommitdiff
path: root/plugins/YAMN/src/proto/pop3/pop3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/YAMN/src/proto/pop3/pop3.cpp')
-rw-r--r--plugins/YAMN/src/proto/pop3/pop3.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/YAMN/src/proto/pop3/pop3.cpp b/plugins/YAMN/src/proto/pop3/pop3.cpp
index f03a7d8a99..f75ad174c6 100644
--- a/plugins/YAMN/src/proto/pop3/pop3.cpp
+++ b/plugins/YAMN/src/proto/pop3/pop3.cpp
@@ -201,7 +201,7 @@ char* CPop3Client::User(char* name)
char query[128];
char *Result;
- mir_snprintf(query, SIZEOF(query), "USER %s\r\n", name);
+ mir_snprintf(query, _countof(query), "USER %s\r\n", name);
NetClient->Send(query);
Result=RecvRest(NetClient->Recv(),POP3_SEARCHACK);
if (AckFlag==POP3_FERR)
@@ -220,7 +220,7 @@ char* CPop3Client::Pass(char* pw)
char query[128];
char *Result;
- mir_snprintf(query, SIZEOF(query), "PASS %s\r\n", pw);
+ mir_snprintf(query, _countof(query), "PASS %s\r\n", pw);
NetClient->Send(query);
Result=RecvRest(NetClient->Recv(),POP3_SEARCHACK);
if (AckFlag==POP3_FERR)
@@ -246,9 +246,9 @@ char* CPop3Client::APOP(char* name, char* pw, char* timestamp)
mir_md5_append(&ctx,(const unsigned char *)timestamp,(unsigned int)mir_strlen(timestamp));
mir_md5_append(&ctx,(const unsigned char *)pw,(unsigned int)mir_strlen(pw));
mir_md5_finish(&ctx, digest);
-
+
char hexdigest[40];
- mir_snprintf(query, SIZEOF(query), "APOP %s %s\r\n", name, bin2hex(digest, sizeof(digest), hexdigest));
+ mir_snprintf(query, _countof(query), "APOP %s %s\r\n", name, bin2hex(digest, sizeof(digest), hexdigest));
NetClient->Send(query);
Result=RecvRest(NetClient->Recv(),POP3_SEARCHACK);
@@ -302,7 +302,7 @@ char* CPop3Client::Top(int nr, int lines)
char query[128];
- mir_snprintf(query, SIZEOF(query), "TOP %d %d\r\n", nr, lines);
+ mir_snprintf(query, _countof(query), "TOP %d %d\r\n", nr, lines);
NetClient->Send(query);
return RecvRest(NetClient->Recv(),POP3_SEARCHDOT);
}
@@ -318,11 +318,11 @@ char* CPop3Client::Uidl(int nr)
if (nr)
{
- mir_snprintf(query, SIZEOF(query), "UIDL %d\r\n", nr);
+ mir_snprintf(query, _countof(query), "UIDL %d\r\n", nr);
NetClient->Send(query);
return RecvRest(NetClient->Recv(),POP3_SEARCHACK);
}
- mir_snprintf(query, SIZEOF(query), "UIDL\r\n");
+ mir_snprintf(query, _countof(query), "UIDL\r\n");
NetClient->Send(query);
return RecvRest(NetClient->Recv(),POP3_SEARCHDOT);
}
@@ -336,7 +336,7 @@ char* CPop3Client::Dele(int nr)
char query[128];
- mir_snprintf(query, SIZEOF(query), "DELE %d\r\n", nr);
+ mir_snprintf(query, _countof(query), "DELE %d\r\n", nr);
NetClient->Send(query);
return RecvRest(NetClient->Recv(),POP3_SEARCHACK);
}
@@ -349,7 +349,7 @@ char* CPop3Client::Retr(int nr)
char query[128];
- mir_snprintf(query, SIZEOF(query), "RETR %d\r\n", nr);
+ mir_snprintf(query, _countof(query), "RETR %d\r\n", nr);
NetClient->Send(query);
RecvRest(NetClient->Recv(),POP3_SEARCHACK);
return NetClient->Recv();