mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2024-12-24 20:01:42 +00:00
closed cid 26479 getc does not match eof
This commit is contained in:
parent
1ae8040bd7
commit
2894bcd7ff
@ -111,12 +111,12 @@ static int parse_opts(char *str, struct ccx_s_options *opt)
|
||||
static void parse_file(FILE *f,struct ccx_s_options *opt)
|
||||
{
|
||||
char *str = (char*)malloc(128);
|
||||
unsigned char c = '\0';
|
||||
char c = '\0';
|
||||
int comments = 0;
|
||||
int i = 0;
|
||||
int ret = 0;
|
||||
*str = '\0';
|
||||
while ((c = (unsigned char)fgetc(f)) != EOF )
|
||||
while ((c = (char)fgetc(f)) != EOF )
|
||||
{
|
||||
if( c == '\n')
|
||||
{
|
||||
@ -136,7 +136,7 @@ static void parse_file(FILE *f,struct ccx_s_options *opt)
|
||||
comments = 1;
|
||||
continue;
|
||||
}
|
||||
str[i] = (char)c;
|
||||
str[i] = c;
|
||||
i++;
|
||||
}
|
||||
free(str);
|
||||
|
Loading…
Reference in New Issue
Block a user