diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2019-08-25 18:52:53 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2019-08-25 18:52:53 +0200 |
commit | e0e7a74bde52a1aa02d1da758128722598fb6dd8 (patch) | |
tree | 3064dd064dcde0969467c6d2e068d8ccbbd648b1 /opie.c | |
parent | 5256f6122e9843b1e9988a742ed6c2a4923bc2bd (diff) | |
download | fetchmail-e0e7a74bde52a1aa02d1da758128722598fb6dd8.tar.gz fetchmail-e0e7a74bde52a1aa02d1da758128722598fb6dd8.tar.bz2 fetchmail-e0e7a74bde52a1aa02d1da758128722598fb6dd8.zip |
Align with legacy_6x.
* Normalize include order.
* Backport missed bug fixes.
* Remove dead code.
Diffstat (limited to 'opie.c')
-rw-r--r-- | opie.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -5,13 +5,14 @@ */ #include "config.h" +#include "fetchmail.h" + #include <stdio.h> #include <string.h> #include <ctype.h> #if defined(STDC_HEADERS) #include <stdlib.h> #endif -#include "fetchmail.h" #include "socket.h" #include "i18n.h" @@ -43,7 +44,7 @@ int do_otp(int sock, const char *command, struct query *ctl) return PS_AUTHFAIL; } - to64frombits(buffer, ctl->remotename, strlen(ctl->remotename), sizeof buffer); + to64frombits(buffer, ctl->remotename, strlen(ctl->remotename), sizeof(buffer)); suppress_tags = TRUE; gen_send(sock, "%s", buffer); suppress_tags = FALSE; @@ -70,7 +71,7 @@ int do_otp(int sock, const char *command, struct query *ctl) if (rval) return(PS_AUTHFAIL); - to64frombits(buffer, response, strlen(response), sizeof buffer); + to64frombits(buffer, response, strlen(response), sizeof(buffer)); suppress_tags = TRUE; gen_send(sock, "%s", buffer); suppress_tags = FALSE; |