calvaria: Fix dump

git-svn-id: svn://svn.openwrt.org/openwrt/packages@25307 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mb 2011-02-02 11:53:40 +00:00
parent 724821318f
commit 97fb9d3cb1

View 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++;