summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cc b/src/util.cc
index 550fc9e4..a9769d31 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -2458,7 +2458,7 @@ bool_ askfor_aux(char *buf, int len)
/* Paranoia -- Clip the default entry */
- buf[len] = '\0';
+ buf[len - 1] = '\0';
/* Display the default answer */