From bloom-picayune.mit.edu!mintaka.lcs.mit.edu!yale!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!hanauma.jpl.nasa.gov!hyc Mon Jan 20 01:42:53 EST 1992 Article: 3253 of comp.sources.bugs Newsgroups: comp.sources.bugs Path: bloom-picayune.mit.edu!mintaka.lcs.mit.edu!yale!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!hanauma.jpl.nasa.gov!hyc From: hyc@hanauma.jpl.nasa.gov (Howard Chu) Subject: ARC 5.21 patch #8 Message-ID: <1992Jan17.002217.1709@elroy.jpl.nasa.gov> Sender: news@elroy.jpl.nasa.gov (Usenet) Nntp-Posting-Host: hanauma.jpl.nasa.gov Organization: SAR Systems Development & Processing, JPL Date: Fri, 17 Jan 92 00:22:17 GMT This is patch 8 for ARC 5.21. It fixes a bug in the getbuf routine in arcpack.c - the routine didn't check to see if it had reached the end of the input buffer... Other changes are mainly cosmetic. The fully patched source is available on terminator.cc.umich.edu in ~ftp/unix/arc521e.tar.Z -- Howard Chu *** 2.0 1991/11/12 00:30:01 --- arc.c 1991/12/19 07:50:48 *************** *** 80,83 **** --- 80,86 ---- #include + #if BSD + #include + #endif #if !__STDC__ *************** *** 106,110 **** char *a; /* option pointer */ VOID upper();/* case conversion routine */ - char *index();/* string index utility */ char *envfind(); /* environment searcher */ int n; /* index */ --- 109,112 ---- *** 2.1 1991/11/12 08:56:41 --- arcadd.c 1991/12/19 07:52:56 *************** *** 23,26 **** --- 23,29 ---- #endif #include + #if BSD + #include + #endif static int addfile(); *************** *** 54,58 **** int notemp; /* true until a template works */ int nowork = 1; /* true until files are added */ ! char *i, *rindex(); /* string indexing junk */ int n; /* index */ #if MSDOS --- 57,61 ---- int notemp; /* true until a template works */ int nowork = 1; /* true until files are added */ ! char *i; /* string indexing junk */ int n; /* index */ #if MSDOS *** 2.1 1991/11/12 08:56:41 --- arcext.c 1991/12/19 07:54:31 *************** *** 23,26 **** --- 23,29 ---- #endif #include + #if BSD + #include + #endif VOID openarc(), closearc(), setstamp(); *************** *** 44,48 **** int save; /* true to save current file */ int did[MAXARG];/* true when argument was used */ ! char *i, *rindex(); /* string index */ char **name; /* name pointer list */ int n; /* index */ --- 47,51 ---- int save; /* true to save current file */ int did[MAXARG];/* true when argument was used */ ! char *i; /* string index */ char **name; /* name pointer list */ int n; /* index */ *************** *** 114,118 **** char buf[STRLEN]; /* input buffer */ char fix[STRLEN]; /* fixed name buffer */ ! char *i, *rindex(); /* string index */ if (prt) { /* printing is much easier */ --- 117,121 ---- char buf[STRLEN]; /* input buffer */ char fix[STRLEN]; /* fixed name buffer */ ! char *i; /* string index */ if (prt) { /* printing is much easier */ *** 2.0 1991/11/12 00:30:01 --- arcmatch.c 1991/12/19 07:55:52 *************** *** 1,4 **** /* ! * $Header: /local/src/arc/RCS/arcmatch.c,v 2.0 1991/11/12 00:30:01 hyc Exp hyc $ */ --- 1,4 ---- /* ! * $Header: /var/local/hyc/src/arc/RCS/arcmatch.c,v 2.0 1991/11/12 00:30:01 hyc Exp $ */ *************** *** 21,24 **** --- 21,27 ---- #include + #if BSD + #include + #endif VOID arcdie(); *************** *** 115,119 **** char *arg[]; /* pointers to names */ { ! char *i, *rindex(); /* string index, reverse indexer */ int n; /* index */ --- 118,122 ---- char *arg[]; /* pointers to names */ { ! char *i; /* string index */ int n; /* index */ *** 2.1 1991/11/12 08:56:41 --- arcmisc.c 1991/12/19 07:58:20 *************** *** 9,12 **** --- 9,15 ---- #include + #if BSD + #include + #endif #if MSDOS *************** *** 151,155 **** char *result; /* where to place the result */ { ! char et[17], er[17], rawbuf[STRLEN], *i, *rindex(); *rawbuf = 0; --- 154,158 ---- char *result; /* where to place the result */ { ! char et[17], er[17], rawbuf[STRLEN], *i; *rawbuf = 0; *************** *** 300,304 **** int fmatch(); static int Nnum = 0, ii; - char *rindex(); --- 303,306 ---- *** 2.0 1991/11/12 00:34:06 --- arcpack.c 1992/01/10 05:32:02 *************** *** 1,4 **** /* ! * $Header: /local/src/arc/RCS/arcpack.c,v 2.0 1991/11/12 00:34:06 hyc Exp hyc $ */ --- 1,4 ---- /* ! * $Header: /var/local/hyc/src/arc/RCS/arcpack.c,v 2.0 1991/11/12 00:34:06 hyc Exp $ */ *************** *** 259,263 **** } else { ptr = pinbuf; ! for (i = 0, c = 0; c != EOF; i++) { if (cr) { c = '\n'; --- 259,263 ---- } else { ptr = pinbuf; ! for (i = 0, c = 0; (c != EOF) && (i < MYBUF); i++) { if (cr) { c = '\n'; *** 1.5 1991/11/12 08:11:01 --- PATCHLEVEL 1992/01/17 00:10:13 *************** *** 1 **** ! 7 --- 1 ---- ! 8 -- -- Howard Chu @ Jet Propulsion Laboratory, Pasadena, CA