Fixed infinity loop in history file lines count on some devices

This commit is contained in:
Dmitriy Shishkov 2020-07-19 11:57:00 +05:00
parent 885bd34da3
commit 648de72521

View File

@ -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);