diff options
author | kennykb <kennykb@noemail.net> | 2007-04-20 04:11:21 (GMT) |
---|---|---|
committer | kennykb <kennykb@noemail.net> | 2007-04-20 04:11:21 (GMT) |
commit | 7853da8910a18eba0a2d4551d3462a561b850e42 (patch) | |
tree | f6ca83e7ddd8c20145974a76559411bafbc4fe94 /generic/tclGetDate.y | |
parent | d15cad46afbdb29e881bc2f0e22d797e2fbd9b59 (diff) | |
download | tcl-7853da8910a18eba0a2d4551d3462a561b850e42.zip tcl-7853da8910a18eba0a2d4551d3462a561b850e42.tar.gz tcl-7853da8910a18eba0a2d4551d3462a561b850e42.tar.bz2 |
Fixed a buglet in recognizing time zone SIERRA
FossilOrigin-Name: 0c6676638d0c4d3308f8b0f765163142b6f1b6d9
Diffstat (limited to 'generic/tclGetDate.y')
-rw-r--r-- | generic/tclGetDate.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclGetDate.y b/generic/tclGetDate.y index f7203a3..89fa14d 100644 --- a/generic/tclGetDate.y +++ b/generic/tclGetDate.y @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclGetDate.y,v 1.33 2007/04/20 03:50:21 kennykb Exp $ + * RCS: @(#) $Id: tclGetDate.y,v 1.34 2007/04/20 04:11:22 kennykb Exp $ */ %{ @@ -774,7 +774,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) { |