From: Michael Stapelberg Date: Sat, 29 Sep 2012 14:42:20 +0000 (+0200) Subject: fix sprintf format X-Git-Tag: rgb2rv9~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6f4f194cfe1d3ea74d0f1b2757c2fa95a49a2b4d;p=c128-kasse fix sprintf format --- diff --git a/src/kasse.c b/src/kasse.c index 11b6e69..d5d55e7 100644 --- a/src/kasse.c +++ b/src/kasse.c @@ -91,7 +91,7 @@ static void print_log(char *name, int item_price, int einheiten, char *nickname, exit(1); } - sprintf(print_buffer, "%c[%3lu] %s - %-" xstr(MAX_ITEM_NAME_LENGTH) "s - %s - %s - %d - an %s\r", 17, + sprintf(print_buffer, "%c[%3u] %s - %-" xstr(MAX_ITEM_NAME_LENGTH) "s - %s - %s - %d - an %s\r", 17, status.transaction_id, time, name, price, rest, einheiten, (*nickname != '\0' ? nickname : "Unbekannt")); print_the_buffer();