Skip to content

Commit

Permalink
uuc: fix format nitpick
Browse files Browse the repository at this point in the history
size is size_t so we should use %zu here,
and sizeof gives also size_t so use %zu here, too.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
  • Loading branch information
mhei committed Nov 16, 2018
1 parent d62bc23 commit 7d5c297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uu.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ static struct utp_message *utp_handle_command(int u, char *cmd, unsigned long lo

w = malloc(size + sizeof(*w));
if (!w) {
printf("UTP: Could not allocate %zd+%lu bytes!\n", size, sizeof(*w));
printf("UTP: Could not allocate %zu+%zu bytes!\n", size, sizeof(*w));
return NULL;
}

Expand Down

0 comments on commit 7d5c297

Please sign in to comment.