summaryrefslogtreecommitdiff
path: root/lib/readline/histfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/readline/histfile.c')
-rw-r--r--lib/readline/histfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/readline/histfile.c b/lib/readline/histfile.c
index 8341c208..aaab7525 100644
--- a/lib/readline/histfile.c
+++ b/lib/readline/histfile.c
@@ -114,7 +114,7 @@ int history_lines_written_to_file = 0;
/* Does S look like the beginning of a history timestamp entry? Placeholder
for more extensive tests. */
-#define HIST_TIMESTAMP_START(s) (*(s) == history_comment_char && isdigit ((s)[1]) )
+#define HIST_TIMESTAMP_START(s) (*(s) == history_comment_char && isdigit ((unsigned char)(s)[1]) )
/* Return the string that should be used in the place of this
filename. This only matters when you don't specify the