Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!pasteur!helios.ee.lbl.gov!nosc!cod!hall From: hall@cod.NOSC.MIL (Robert R. Hall) Newsgroups: comp.os.minix Subject: Bug report and fix for uudecode.c Keywords: uudecode Message-ID: <1446@cod.NOSC.MIL> Date: 13 Mar 89 16:26:25 GMT Organization: Naval Ocean Systems Center, San Diego Lines: 36 I tried unpacking the recent clam posting under MINIX. The MINIX commands uudecode, compress sh and sed all did their job satisfactory and I was able to extract the source code for tsch however uudecode printed an warning message "No end line" Thus here is a patch to let uudecode find the end statements in the clam posting and not print the warning message. ----------------- cut here ----------------------- echo x - uudecode.c.dif sed '/^X/s///' > uudecode.c.dif << '/' X*** /usr/v1.3d/commands/uudecode.c Mon Sep 19 14:10:06 1988 X--- uudecode.c Mon Mar 13 07:47:29 1989 X*************** X*** 114,120 **** X printf("Short file\n"); X exit(10); X } X! n = tbuf[0] - ' '; X if (n <= 0) X break; X X--- 114,120 ---- X printf("Short file\n"); X exit(10); X } X! n = DEC(tbuf[0]); X if (n <= 0) X break; X / ---------------------- end ----------------- Robert R. Hall hall@nosc.mil