X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=opie.c;h=4b8ad4f3ead2ce5fc158f31c518ff218432f3abc;hb=a23a8cf8ee1da51c4392b9f52e6b72b0c01e3b5e;hp=395de2dd4f5fc65d132a24a5849a655d4dd2d254;hpb=c3e52ea6ca3178b7ecab4b389a9ba9269662b48f;p=~andy%2Ffetchmail diff --git a/opie.c b/opie.c index 395de2dd..4b8ad4f3 100644 --- a/opie.c +++ b/opie.c @@ -8,14 +8,12 @@ #include #include #include -#if defined(STDC_HEADERS) #include -#endif #include "fetchmail.h" #include "socket.h" -#include "i18n.h" -#include "md5.h" +#include "gettext.h" +#include "fm_md5.h" #ifdef OPIE_ENABLE #ifdef __cplusplus @@ -26,7 +24,7 @@ extern "C" { } #endif -int do_otp(int sock, char *command, struct query *ctl) +int do_otp(int sock, const char *command, struct query *ctl) { int i, rval; char buffer[128]; @@ -45,7 +43,7 @@ int do_otp(int sock, 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 +70,7 @@ int do_otp(int sock, 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))))