[11421] in Athena Bugs
athena.bin/Ansi/unseg.c fprintf problem
daemon@ATHENA.MIT.EDU (epeisach@MIT.EDU)
Tue Nov 23 19:56:15 1993
From: epeisach@MIT.EDU
Date: Tue, 23 Nov 1993 19:58:15 -0500
To: bugs@MIT.EDU
The following patch should be self apparent...
a) The comment after the endif
b) fprintf
===================================================================
RCS file: RCS/unseg.c,v
retrieving revision 1.1
diff -c -r1.1 unseg.c
*** 1.1 1993/11/24 00:56:15
--- unseg.c 1993/11/24 00:57:09
***************
*** 2,13 ****
* $Source: /u1/source/mit/athena/athena.bin/Ansi/RCS/unseg.c,v $
* $Author: epeisach $
* $Locker: $
! * $Header: /u1/source/mit/athena/athena.bin/Ansi/RCS/unseg.c,v 1.1 1993/11/24 00:56:15 epeisach Exp $
*/
#ifndef lint
! static char *rcsid_unseg_c = "$Header: /u1/source/mit/athena/athena.bin/Ansi/RCS/unseg.c,v 1.1 1993/11/24 00:56:15 epeisach Exp $";
! #endif lint
#include <stdio.h>
/* written by Jim Gettys, The Institute for Advanced Study, Princeton, NJ.
--- 2,13 ----
* $Source: /u1/source/mit/athena/athena.bin/Ansi/RCS/unseg.c,v $
* $Author: epeisach $
* $Locker: $
! * $Header: /u1/source/mit/athena/athena.bin/Ansi/RCS/unseg.c,v 1.2 1993/11/24 00:57:00 epeisach Exp $
*/
#ifndef lint
! static char *rcsid_unseg_c = "$Header: /u1/source/mit/athena/athena.bin/Ansi/RCS/unseg.c,v 1.2 1993/11/24 00:57:00 epeisach Exp $";
! #endif /* lint */
#include <stdio.h>
/* written by Jim Gettys, The Institute for Advanced Study, Princeton, NJ.
***************
*** 78,84 ****
fwrite(&rlength,sizeof(rlength),1,stdout);
/* write out real record length*/
if(fseek(stdout,bc,0) == 1) {
! fprintf("unseg: can't seek on stdout!\n");
exit(1);
}
/* patch forward pointer*/
--- 78,84 ----
fwrite(&rlength,sizeof(rlength),1,stdout);
/* write out real record length*/
if(fseek(stdout,bc,0) == 1) {
! fprintf(stderr, "unseg: can't seek on stdout!\n");
exit(1);
}
/* patch forward pointer*/