--- ray/src/px/protate.c 1989/09/12 13:04:27 1.2 +++ ray/src/px/protate.c 1990/01/25 08:28:35 1.4 @@ -45,8 +45,7 @@ char *argv[]; exit(1); } /* copy header */ - while (fgets(buf, sizeof(buf), fin) != NULL && buf[0] != '\n') - fputs(buf, stdout); + copyheader(fin, stdout); /* add new header info. */ printf("%s\n\n", progname); /* get picture size */ @@ -86,7 +85,8 @@ FILE *fp; exit(1); } for (inx = 0; inx < nrows && xoff+inx < xres; inx++) - bcopy(inline[xoff+inx], scanbar[inx*yres+iny], + bcopy((char *)inline[xoff+inx], + (char *)scanbar[inx*yres+iny], sizeof(COLR)); } for (inx = 0; inx < nrows && xoff+inx < xres; inx++)