--- ray/src/common/header.c 1996/03/12 11:29:16 2.7 +++ ray/src/common/header.c 1997/10/31 11:40:52 2.9 @@ -1,4 +1,4 @@ -/* Copyright (c) 1994 Regents of the University of California */ +/* Copyright (c) 1996 Regents of the University of California */ #ifndef lint static char SCCSid[] = "$SunId$ LBL"; @@ -57,7 +57,7 @@ register char *r, *s; while (*cp) if (*cp++ != *s++) return(0); if (r == NULL) return(1); - while (*s) *r++ = *s++; + while (*s && !isspace(*s)) *r++ = *s++; *r = '\0'; return(1); } @@ -89,9 +89,8 @@ register FILE *fp; putc(quote, fp); } else fputs(*av++, fp); - putc(' ', fp); + putc(ac ? ' ' : '\n', fp); } - putc('\n', fp); }