X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=opie.c;h=26f3c93cc561e610120b2eb21538b066fb9dfbec;hb=ecade79a63e9abad933e3705a02533620ddc92b5;hp=94fd59b4c87de894177c97abad43e792c41d525b;hpb=05cb2b9c62b323a1278c81b6cbe00b2e4186b4f4;p=~andy%2Ffetchmail diff --git a/opie.c b/opie.c index 94fd59b4..26f3c93c 100644 --- a/opie.c +++ b/opie.c @@ -15,7 +15,7 @@ #include "socket.h" #include "i18n.h" -#include "md5.h" +#include "fm_md5.h" #ifdef OPIE_ENABLE #ifdef __cplusplus @@ -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))))