diff options
author | Sunil Shetye <sunilshetye@rocketmail.com> | 2011-05-04 15:13:16 +0530 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2011-05-04 15:54:15 +0200 |
commit | e135b2cd6a9a46b4b899d74d135c7a2f32b190cc (patch) | |
tree | 965775a8b0d643559db1f5206a039229bad83c8b /opie.c | |
parent | 13a7b5643431cfad685ca2e27dfbf3727b557a6c (diff) | |
download | fetchmail-e135b2cd6a9a46b4b899d74d135c7a2f32b190cc.tar.gz fetchmail-e135b2cd6a9a46b4b899d74d135c7a2f32b190cc.tar.bz2 fetchmail-e135b2cd6a9a46b4b899d74d135c7a2f32b190cc.zip |
correct call to gen_send()
Diffstat (limited to 'opie.c')
-rw-r--r-- | opie.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -45,7 +45,7 @@ int do_otp(int sock, const char *command, struct query *ctl) to64frombits(buffer, ctl->remotename, strlen(ctl->remotename)); suppress_tags = TRUE; - gen_send(sock, buffer, sizeof(buffer)); + gen_send(sock, "%s", buffer); suppress_tags = FALSE; if ((rval = gen_recv(sock, buffer, sizeof(buffer)))) @@ -72,7 +72,7 @@ int do_otp(int sock, const char *command, struct query *ctl) to64frombits(buffer, response, strlen(response)); suppress_tags = TRUE; - gen_send(sock, buffer, strlen(buffer)); + gen_send(sock, "%s", buffer); suppress_tags = FALSE; if ((rval = gen_recv(sock, buffer, sizeof(buffer)))) |