]> Pileus Git - ~andy/fetchmail/blobdiff - opie.c
Credit John Beck's fixes.
[~andy/fetchmail] / opie.c
diff --git a/opie.c b/opie.c
index 94fd59b4c87de894177c97abad43e792c41d525b..26f3c93cc561e610120b2eb21538b066fb9dfbec 100644 (file)
--- 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))))