summaryrefslogtreecommitdiffstats
path: root/generic/tclDate.c
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2007-04-20 04:11:22 (GMT)
committerKevin B Kenny <kennykb@acm.org>2007-04-20 04:11:22 (GMT)
commit97d7bdb53a0311ef3da99b07b875611f1f2e6394 (patch)
treef6ca83e7ddd8c20145974a76559411bafbc4fe94 /generic/tclDate.c
parent7fd2b33d4eefd8711a3ef349cdd729da6bb7fa42 (diff)
downloadtcl-97d7bdb53a0311ef3da99b07b875611f1f2e6394.zip
tcl-97d7bdb53a0311ef3da99b07b875611f1f2e6394.tar.gz
tcl-97d7bdb53a0311ef3da99b07b875611f1f2e6394.tar.bz2
Fixed a buglet in recognizing time zone SIERRA
Diffstat (limited to 'generic/tclDate.c')
-rw-r--r--generic/tclDate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclDate.c b/generic/tclDate.c
index bfd4ccf..4c914fc 100644
--- a/generic/tclDate.c
+++ b/generic/tclDate.c
@@ -2204,7 +2204,7 @@ LookupWord(
*/
i = strlen(buff) - 1;
- if (buff[i] == 's') {
+ if (i > 0 && buff[i] == 's') {
buff[i] = '\0';
for (tp = UnitsTable; tp->name; tp++) {
if (strcmp(buff, tp->name) == 0) {