dnd: Use %zd in the format string for size_t types

len i size_t, so is the result of the sizeof operator.
dev
Damien Lespiau 12 years ago committed by Kristian Høgsberg
parent aac8693cf3
commit 4df7e27055
  1. 2
      clients/dnd.c

@ -517,7 +517,7 @@ dnd_receive_func(void *data, size_t len, int32_t x, int32_t y, void *user_data)
if (len == 0) {
return;
} else if (len != sizeof *message) {
fprintf(stderr, "odd message length %ld, expected %ld\n",
fprintf(stderr, "odd message length %zu, expected %zu\n",
len, sizeof *message);
return;
}

Loading…
Cancel
Save