From e135b2cd6a9a46b4b899d74d135c7a2f32b190cc Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Wed, 4 May 2011 15:13:16 +0530 Subject: correct call to gen_send() --- opie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opie.c b/opie.c index 06756121..26f3c93c 100644 --- a/opie.c +++ b/opie.c @@ -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)))) -- cgit v1.2.3