]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libssh2: fix variable type
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Wed, 15 Jan 2020 19:28:01 +0000 (20:28 +0100)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Thu, 16 Jan 2020 09:03:59 +0000 (10:03 +0100)
This led to a conversion warning on 64-bit MinGW, which has 32-bit
`long` but 64-bit `size_t`.

Closes https://github.com/curl/curl/pull/4823

lib/vssh/libssh2.c

index cdbfa7b408c4531b98ebc3a05b1f3ddbd61e4d3d..92cb6513287bb1abb8421764f679be5d60d5d268 100644 (file)
@@ -685,7 +685,7 @@ static CURLcode ssh_force_knownhost_key_type(struct connectdata *conn)
   struct Curl_easy *data = conn->data;
   struct libssh2_knownhost* store = NULL;
   const char *kh_name_end = NULL;
-  long unsigned int kh_name_size = 0;
+  size_t kh_name_size = 0;
   int port = 0;
   bool found = false;