bugs in binary patch utility.
The Beach Bum
root at rpp386.Dallas.TX.US
Wed Sep 7 13:28:16 AEST 1988
i have managed to find a bug with `bpe' which was posted sometime in
the past. i can't find it in the archive listings i have, but i recall
it was posted as 'bpe' in the .misc group ...
anyhow, this patch fixes a display bug.
- john.
-------- snip here ---------
*** bpatch.c
--- bpatch.c.new
**************
*** 1241,1249
for (j = 0; j < 16 && i*16+j < bytes; ++j)
{
! if (temp[j] < ' ') outch ('.');
! else
! {
sprintf (outbuf, "%c", temp[j]);
outstr (outbuf);
}
--- 1241,1249 -----
for (j = 0; j < 16 && i*16+j < bytes; ++j)
{
! if (temp[j] < ' ' || temp[j] > '~' || temp[j] == '%')
! outch ('.');
! else {
sprintf (outbuf, "%c", temp[j]);
outstr (outbuf);
}
More information about the Comp.sources.bugs
mailing list