diff options
-rw-r--r-- | opie.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |