summaryrefslogtreecommitdiff
path: root/history.c
diff options
context:
space:
mode:
Diffstat (limited to 'history.c')
-rw-r--r--history.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/history.c b/history.c
index 3a42a2e..d1035dd 100644
--- a/history.c
+++ b/history.c
@@ -56,7 +56,7 @@ static char *newstr() {
return ealloc((size_t)1024);
}
-static char *basename(char *s) {
+static char *basename(const char *s) {
char *t = strrchr(s, '/');
return (t == NULL) ? s : t + 1;
}