1996-09-03 11:07:36 +00:00
|
|
|
*** filer.c.orig Thu May 26 21:59:10 1994
|
|
|
|
--- filer.c Tue Sep 3 15:01:15 1996
|
1996-09-03 01:33:08 +00:00
|
|
|
***************
|
|
|
|
*** 85,91 ****
|
|
|
|
{
|
|
|
|
int i ;
|
|
|
|
int nchars ;
|
|
|
|
! char * filename[138] ;
|
|
|
|
int bytesperrow ;
|
|
|
|
unsigned char * vidmem ;
|
|
|
|
int vidwidth ;
|
|
|
|
--- 85,91 ----
|
|
|
|
{
|
|
|
|
int i ;
|
|
|
|
int nchars ;
|
|
|
|
! char filename[138] ;
|
|
|
|
int bytesperrow ;
|
|
|
|
unsigned char * vidmem ;
|
|
|
|
int vidwidth ;
|
|
|
|
***************
|
|
|
|
*** 187,193 ****
|
|
|
|
fprintf(stderr,"\n");
|
|
|
|
fprintf(stderr, msg, p1, p2, p3, p4);
|
|
|
|
fprintf(stderr,"\n");
|
|
|
|
! fclose(pF);
|
|
|
|
return -1 ;
|
|
|
|
}
|
|
|
|
|
1996-09-03 11:07:36 +00:00
|
|
|
--- 187,196 ----
|
1996-09-03 01:33:08 +00:00
|
|
|
fprintf(stderr,"\n");
|
|
|
|
fprintf(stderr, msg, p1, p2, p3, p4);
|
|
|
|
fprintf(stderr,"\n");
|
1996-09-03 11:07:36 +00:00
|
|
|
! if (pF != NULL) {
|
1996-09-03 01:33:08 +00:00
|
|
|
! fclose(pF);
|
1996-09-03 11:07:36 +00:00
|
|
|
! pF = NULL;
|
|
|
|
! }
|
1996-09-03 01:33:08 +00:00
|
|
|
return -1 ;
|
|
|
|
}
|
|
|
|
|
|
|
|
***************
|
|
|
|
*** 300,306 ****
|
|
|
|
|
|
|
|
if (!Extension(filename,".bdf")) strcat(filename,".bdf");
|
|
|
|
|
|
|
|
! if ((pF = fopen( filename, "r")) == NULL) return fatal("Can't open file");
|
|
|
|
|
|
|
|
getline(linebuf);
|
|
|
|
if ((sscanf(linebuf, "STARTFONT %s", namebuf) != 1) ||
|
1996-09-03 11:07:36 +00:00
|
|
|
--- 303,309 ----
|
1996-09-03 01:33:08 +00:00
|
|
|
|
|
|
|
if (!Extension(filename,".bdf")) strcat(filename,".bdf");
|
|
|
|
|
|
|
|
! if ((pF = fopen( filename, "r")) == NULL) return fatal("Can't open file %s", filename);
|
|
|
|
|
|
|
|
getline(linebuf);
|
|
|
|
if ((sscanf(linebuf, "STARTFONT %s", namebuf) != 1) ||
|