aboutsummaryrefslogtreecommitdiff
path: root/src/lib9
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-03-26 01:59:35 +0000
committerrsc <devnull@localhost>2004-03-26 01:59:35 +0000
commitbe22ae2d0729f68672e3202c91cfe13c9e74cccc (patch)
treeb7bc9f9c1e8d3b221adc82f055f8be19ef25d0e6 /src/lib9
parent4e3a2cc1f96f4479f951958f9ca1860f57a0771b (diff)
downloadplan9port-be22ae2d0729f68672e3202c91cfe13c9e74cccc.tar.gz
plan9port-be22ae2d0729f68672e3202c91cfe13c9e74cccc.tar.bz2
plan9port-be22ae2d0729f68672e3202c91cfe13c9e74cccc.zip
SunOS can rot in hell.
Diffstat (limited to 'src/lib9')
-rw-r--r--src/lib9/date.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib9/date.c b/src/lib9/date.c
index 8f852de2..47abaf36 100644
--- a/src/lib9/date.c
+++ b/src/lib9/date.c
@@ -43,7 +43,7 @@ tm2Tm(struct tm *tm, Tm *bigtm)
if(bigtm->zone[0] == 0){
s = getenv("TIMEZONE");
if(s){
- strecpy(bigtm->zone, bigtm->zone+4, tm->tm_zone);
+ strecpy(bigtm->zone, bigtm->zone+4, s);
free(s);
}
}