aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-06-08 15:55:28 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-06-08 16:02:52 +0200
commit0294977b5458ee2c0ba77b6b2b94fb4a4d6a1310 (patch)
treeda5167740ddaed9472e47925426fee4c3b0a54cd
parentaa69592eff0ec4bda76c8c3d3cbbafe3149b5131 (diff)
downloadlibpam-freerdp2-0294977b5458ee2c0ba77b6b2b94fb4a4d6a1310.tar.gz
libpam-freerdp2-0294977b5458ee2c0ba77b6b2b94fb4a4d6a1310.tar.bz2
libpam-freerdp2-0294977b5458ee2c0ba77b6b2b94fb4a4d6a1310.zip
tests/mock_guest.c: Use same integer type (long unsigned int) for comparing string length returned by snprintf() and a sizeof() return value.
-rw-r--r--tests/mock_guest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mock_guest.c b/tests/mock_guest.c
index 218f30e..4d10bfb 100644
--- a/tests/mock_guest.c
+++ b/tests/mock_guest.c
@@ -89,7 +89,7 @@ socket_sucker ()
serv_addr.sun_family = AF_UNIX;
- int printsize = snprintf(serv_addr.sun_path, sizeof(serv_addr.sun_path) - 1, "%s/%s", home, ".freerdp2-socket");
+ unsigned long int printsize = (unsigned long int)snprintf(serv_addr.sun_path, sizeof(serv_addr.sun_path) - 1, "%s/%s", home, ".freerdp2-socket");
if (printsize > sizeof(serv_addr.sun_path) - 1 || printsize < 0) {
return -1;
}