From 166ee451c500543db49e789b9bb2ed16db052f94 Mon Sep 17 00:00:00 2001 From: Oliver Stöneberg Date: Mon, 11 Apr 2011 11:17:32 +0200 Subject: build: Fixed some VS2010 problems. --- src/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/misc.c') diff --git a/src/misc.c b/src/misc.c index 3b4b5059..84858ea6 100644 --- a/src/misc.c +++ b/src/misc.c @@ -140,7 +140,7 @@ char *ssh_get_local_username(ssh_session session) { /* get the size */ GetUserName(NULL, &size); - user = malloc(size); + user = (char *) malloc(size); if (user == NULL) { ssh_set_error_oom(session); return NULL; @@ -159,7 +159,7 @@ int ssh_is_ipaddr_v4(const char *str) { int rc = SOCKET_ERROR; /* WSAStringToAddressA thinks that 0.0.0 is a valid IP */ - if (strlen < 7) { + if (strlen(str) < 7) { return 0; } -- cgit