aboutsummaryrefslogtreecommitdiff
path: root/libssh/auth1.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/auth1.c')
-rw-r--r--libssh/auth1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libssh/auth1.c b/libssh/auth1.c
index 65fc9058..40cccda1 100644
--- a/libssh/auth1.c
+++ b/libssh/auth1.c
@@ -23,6 +23,7 @@ MA 02111-1307, USA. */
#include "libssh/ssh1.h"
#include <string.h>
#include <netdb.h>
+#include <stdlib.h>
/*
static void burn(char *ptr){
@@ -187,7 +188,7 @@ int ssh_userauth1_password(SSH_SESSION *session,char *username,char *password){
*/
password_s=string_new(128);
ssh_get_random(password_s->string,128,0);
- strcpy(password_s->string,password);
+ strcpy((char *)password_s->string,password);
}
packet_clear_out(session);