Subject: ../externals/libssh2/src/openssl.c: signed/unsigned comparison

../externals/libssh2/src/openssl.c: signed/unsigned comparison

From: Steven Van Ingelgem <steven_at_vaningelgem.be>
Date: Fri, 14 Aug 2009 10:29:02 +0200

read = size_t
size = long
...
Index: ../externals/libssh2/src/openssl.c
===================================================================
--- ../externals/libssh2/src/openssl.c (revision 290)
+++ ../externals/libssh2/src/openssl.c (working copy)
@@ -241,7 +241,7 @@
  }

  read = fread(*key, 1, size, fp);
- if (read != size) {
+ if (read != (size_t)size) {
  LIBSSH2_FREE(session, *key);
  return -1;
  }

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2009-08-14