[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/6] time_rz: fix off-by-one typo
From: |
Paul Eggert |
Subject: |
[PATCH 1/6] time_rz: fix off-by-one typo |
Date: |
Sat, 25 Jul 2015 18:21:53 -0700 |
* lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
---
ChangeLog | 5 +++++
lib/time_rz.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 0b0fc02..e2b368d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-07-25 Paul Eggert <address@hidden>
+
+ time_rz: fix off-by-one typo
+ * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
+
2015-07-23 Paul Eggert <address@hidden>
fprintftime, strftime: use timezone_t args
diff --git a/lib/time_rz.c b/lib/time_rz.c
index db1a382..19aaa1a 100644
--- a/lib/time_rz.c
+++ b/lib/time_rz.c
@@ -109,7 +109,7 @@ static void
extend_abbrs (char *abbrs, char const *abbr, size_t abbr_size)
{
memcpy (abbrs, abbr, abbr_size);
- abbrs[abbr_size + 1] = '\0';
+ abbrs[abbr_size] = '\0';
}
/* Return a newly allocated time zone for NAME, or NULL on failure.
--
2.1.0
- [PATCH 1/6] time_rz: fix off-by-one typo,
Paul Eggert <=
- [PATCH 2/6] time_rz: make a constant 'const', Paul Eggert, 2015/07/25
- [PATCH 3/6] time_rz: now LGPL, Paul Eggert, 2015/07/25
- [PATCH 4/6] time_rz: port to Solaris etc., Paul Eggert, 2015/07/25
- [PATCH 5/6] test-strftime: test for Solaris bug, Paul Eggert, 2015/07/25
- [PATCH 6/6] strftime: fix newly-introduced bug on Solaris, Paul Eggert, 2015/07/25