Path: utzoo!attcan!uunet!pyrdc!netsys!vector!rpp386!root From: root@rpp386.Dallas.TX.US (The Beach Bum) Newsgroups: comp.sources.bugs Subject: bugs in binary patch utility. Message-ID: <6282@rpp386.Dallas.TX.US> Date: 7 Sep 88 03:28:16 GMT Organization: HASA, "S" Division Lines: 32 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); }