Fixed sprintf format/args type mismatch.

This commit is contained in:
Benoit Dejean
2015-07-15 18:47:51 +02:00
parent 6239438dce
commit 51fd022bdd

View File

@@ -35,10 +35,10 @@ glibtop_send_version (glibtop *server, int fd)
sprintf (buffer, LIBGTOP_VERSION_STRING,
LIBGTOP_VERSION, LIBGTOP_SERVER_VERSION,
sizeof (glibtop_command),
sizeof (glibtop_response),
sizeof (glibtop_union),
sizeof (glibtop_sysdeps));
(unsigned) sizeof (glibtop_command),
(unsigned) sizeof (glibtop_response),
(unsigned) sizeof (glibtop_union),
(unsigned) sizeof (glibtop_sysdeps));
size = strlen (buffer) + 1;