From: Michael Stapelberg Date: Sun, 30 Sep 2012 09:09:11 +0000 (+0200) Subject: cat.c: correctly prefix 0 for every single hex (!) digit X-Git-Tag: rgb2rv9~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3c0c74864532bf8418c06a71aae01663409fc3e6;p=c128-kasse cat.c: correctly prefix 0 for every single hex (!) digit --- diff --git a/src/cat.c b/src/cat.c index e0f866d..37f60e7 100644 --- a/src/cat.c +++ b/src/cat.c @@ -6,7 +6,7 @@ #include "general.h" -#define x2(x) (buffer[x] < 10 ? "0" : ""), buffer[x] +#define x2(x) (buffer[x] <= 0xF ? "0" : ""), buffer[x] int main() { char *filename = NULL;