1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00

build: Fixed some VS2010 problems.

This commit is contained in:
Oliver Stöneberg
2011-04-11 11:17:32 +02:00
committed by Andreas Schneider
parent 46475dfa2f
commit 166ee451c5
4 changed files with 6 additions and 6 deletions

View File

@@ -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;
}