diff --git a/examples/pres_2/bob.c b/examples/pres_2/bob.c index 32028b18c7e015b5c88aaf4515282e0971405f48..f5da91926e15f62bd6e0f0733bf89a97d313526b 100644 --- a/examples/pres_2/bob.c +++ b/examples/pres_2/bob.c @@ -34,7 +34,7 @@ int main(int argc, char** argv) { // Read our received message size_t msg_len; const char * msg_ptr = connector_gotten_bytes(c, ports[2], &msg_len); - printf("Got msg `%.*s`\n", msg_len, msg_ptr); + printf("Got msg `%.*s`\n", (int) msg_len, msg_ptr); printf("Exiting\n"); protocol_description_destroy(pd); @@ -42,4 +42,4 @@ int main(int argc, char** argv) { free(pdl); sleep(1.0); return 0; -} \ No newline at end of file +}