calvaria: Fix dump
authorMichael Büsch <mb@bu3sch.de>
Wed, 2 Feb 2011 11:53:40 +0000 (11:53 +0000)
committerMichael Büsch <mb@bu3sch.de>
Wed, 2 Feb 2011 11:53:40 +0000 (11:53 +0000)
SVN-Revision: 25307

utils/calvaria/files/src/calvaria.c

index dced7b41f5cd09905b31c224e31d535890ff8db0..0b104059ad73cc3ca3ff5472c7835a0c8d0a1a32 100644 (file)
@@ -59,7 +59,7 @@ static void dump(FILE *outstream, const char *buf, size_t size)
                        }
                        fprintf(outstream, "[%04X]: ", (unsigned int)i);
                }
-               fprintf(outstream, " %02X", buf[i]);
+               fprintf(outstream, " %02X", buf[i] & 0xFF);
                ascii[ascii_cnt] = toAscii(buf[i]);
                ascii[ascii_cnt + 1] = 0;
                ascii_cnt++;