Fixed infinity loop in history file lines count on some devices
This commit is contained in:
parent
885bd34da3
commit
648de72521
@ -201,7 +201,7 @@ char *get_curr_dir_name()
|
||||
int get_num_of_lines(FILE *file)
|
||||
{
|
||||
int n = 0;
|
||||
char ch, pch;
|
||||
int ch, pch;
|
||||
long curr_pos = ftell(file);
|
||||
|
||||
fseek(file, 0, SEEK_SET);
|
||||
|
Loading…
x
Reference in New Issue
Block a user