File eblook-1.5.1.dif of Package eblook
--- codeconv.c
+++ codeconv.c
@@ -548,7 +548,7 @@
char *
xfgets(str, size, fp)
char *str;
- int size;
+ size_t size;
FILE *fp;
{
char *ibuf, *ibuf0;
@@ -579,7 +579,7 @@
ibuf[ilen]=0;
ilen=strlen(ibuf);
- status = current_to_euc(&ibuf,&ilen,&str,(size_t *)&size);
+ status = current_to_euc(&ibuf,&ilen,&str,&size);
str0[size0-size]=0;
#ifndef HAVE_ALLOCA
free(ibuf0);
--- codeconv.h
+++ codeconv.h
@@ -50,7 +50,7 @@
extern int xprintf PROTO((const char *fmt, ...));
extern int xfputs PROTO((const char *str, FILE *fp));
extern int xputs PROTO((const char *str));
-extern char *xfgets PROTO((char *str, int size, FILE *fp));
+extern char *xfgets PROTO((char *str, size_t size, FILE *fp));
extern char *euc_to_jis PROTO((char *jis, const char *euc, int len));
extern char *jis_to_euc PROTO((char *euc, const char *jis, int len));