File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,8 @@ extern int errno;
57
57
/* How big to make the_history when we first allocate it. */
58
58
#define DEFAULT_HISTORY_INITIAL_SIZE 502
59
59
60
+ #define MAX_HISTORY_INITIAL_SIZE 8192
61
+
60
62
/* The number of slots to increase the_history by. */
61
63
#define DEFAULT_HISTORY_GROW_SIZE 50
62
64
@@ -307,7 +309,9 @@ add_history (string)
307
309
if (history_size == 0 )
308
310
{
309
311
if (history_stifled && history_max_entries > 0 )
310
- history_size = history_max_entries + 2 ;
312
+ history_size = (history_max_entries > MAX_HISTORY_INITIAL_SIZE )
313
+ ? MAX_HISTORY_INITIAL_SIZE
314
+ : history_max_entries + 2 ;
311
315
else
312
316
history_size = DEFAULT_HISTORY_INITIAL_SIZE ;
313
317
the_history = (HIST_ENTRY * * )xmalloc (history_size * sizeof (HIST_ENTRY * ));
Original file line number Diff line number Diff line change 25
25
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
26
26
looks for to find the patch level (for the sccs version string). */
27
27
28
- #define PATCHLEVEL 0
28
+ #define PATCHLEVEL 1
29
29
30
30
#endif /* _PATCHLEVEL_H_ */
You can’t perform that action at this time.
0 commit comments