Fix parameters of readfontchar()
Found by inspection, the absence of function prototypes cause the compiler to not issue a warning about this problem. Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
parent
5f7350cae5
commit
96756a169e
6
figlet.c
6
figlet.c
@ -1104,11 +1104,9 @@ void clearline()
|
||||
|
||||
****************************************************************************/
|
||||
|
||||
void readfontchar(file,theord,line,maxlen)
|
||||
void readfontchar(file,theord)
|
||||
ZFILE *file;
|
||||
inchr theord;
|
||||
outchr *line; /* FIXME: line isn't used */
|
||||
int maxlen;
|
||||
{
|
||||
int row,k;
|
||||
char templine[MAXLEN+1];
|
||||
@ -1122,7 +1120,7 @@ int maxlen;
|
||||
fcharlist->next = fclsave;
|
||||
|
||||
for (row=0;row<charheight;row++) {
|
||||
if (myfgets(templine,maxlen+1,file)==NULL) {
|
||||
if (myfgets(templine,MAXLEN,file)==NULL) {
|
||||
templine[0] = '\0';
|
||||
}
|
||||
#ifdef TLF_FONTS
|
||||
|
Loading…
x
Reference in New Issue
Block a user