aboutsummaryrefslogtreecommitdiffstats
path: root/opie.c
diff options
context:
space:
mode:
Diffstat (limited to 'opie.c')
-rw-r--r--opie.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opie.c b/opie.c
index 26f3c93c..90be8035 100644
--- a/opie.c
+++ b/opie.c
@@ -43,7 +43,7 @@ int do_otp(int sock, const char *command, struct query *ctl)
return PS_AUTHFAIL;
}
- to64frombits(buffer, ctl->remotename, strlen(ctl->remotename));
+ to64frombits(buffer, ctl->remotename, strlen(ctl->remotename), sizeof buffer);
suppress_tags = TRUE;
gen_send(sock, "%s", buffer);
suppress_tags = FALSE;
@@ -70,7 +70,7 @@ int do_otp(int sock, const char *command, struct query *ctl)
if (rval)
return(PS_AUTHFAIL);
- to64frombits(buffer, response, strlen(response));
+ to64frombits(buffer, response, strlen(response), sizeof buffer);
suppress_tags = TRUE;
gen_send(sock, "%s", buffer);
suppress_tags = FALSE;