diff options
author | Oliver Stöneberg <oliverst@online.de> | 2011-04-11 11:17:32 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-04-11 11:19:26 +0200 |
commit | af25fc35d14285c1422ba0a025de1a16ea9e3486 (patch) | |
tree | a17d1b56634b937a81035f04aa90163e41883678 /src/misc.c | |
parent | db49b84a44b07bd5560dc03758452740eae79932 (diff) | |
download | libssh-af25fc35d14285c1422ba0a025de1a16ea9e3486.tar.gz libssh-af25fc35d14285c1422ba0a025de1a16ea9e3486.tar.xz libssh-af25fc35d14285c1422ba0a025de1a16ea9e3486.zip |
build: Fixed some VS2010 problems.
(cherry picked from commit 166ee451c500543db49e789b9bb2ed16db052f94)
Diffstat (limited to 'src/misc.c')
-rw-r--r-- | src/misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |