summaryrefslogtreecommitdiffstats
path: root/mbbsd/read.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/read.c')
-rw-r--r--mbbsd/read.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mbbsd/read.c b/mbbsd/read.c
index 52f010ee..66ea613f 100644
--- a/mbbsd/read.c
+++ b/mbbsd/read.c
@@ -1177,8 +1177,7 @@ get_records_and_bottom(char *direct, fileheader_t* headers,
if (n > 0) {
char directbottom[PATHLEN];
- snprintf(directbottom, sizeof(directbottom)-1, "%s.bottom", direct);
- directbottom[sizeof(directbottom)-1] = 0;
+ snprintf(directbottom, sizeof(directbottom), "%s.bottom", direct);
n = get_records(directbottom, headers+rv, sizeof(fileheader_t), 1, n);
if (n < 0) n = 0;
rv += n;