small fix for HISTFILESIZE
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 31 Mar 2011 12:39:38 +0000 (14:39 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 31 Mar 2011 12:39:38 +0000 (14:39 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/lineedit.c

index 095ccfbef97ab34c69fe0471843ab75dfd9192c8..0563e6d011599e6dbf08f4e13579e3b1cee3cdac 100644 (file)
@@ -1412,6 +1412,7 @@ static void save_history(char *str)
                 * load them */
                st_temp = new_line_input_t(state->flags);
                st_temp->hist_file = state->hist_file;
+               st_temp->max_history = state->max_history;
                load_history(st_temp);
 
                /* write out temp file and replace hist_file atomically */