mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Write the strvis()'d string out to the history file in history_save(),
not the original string. Fixes the bug where every second line of a history file was empty.
This commit is contained in:
parent
0921c98b22
commit
3a0e6ca553
1 changed files with 1 additions and 1 deletions
|
|
@ -654,7 +654,7 @@ history_save(History *h, const char *fname)
|
|||
ptr = h_realloc(ptr, max_size);
|
||||
}
|
||||
(void) strvis(ptr, ev.str, VIS_WHITE);
|
||||
(void) fprintf(fp, "%s\n", ev.str);
|
||||
(void) fprintf(fp, "%s\n", ptr);
|
||||
}
|
||||
h_free(ptr);
|
||||
(void) fclose(fp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue