diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-22 16:40:09 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-22 16:40:09 +0000 |
commit | 326d82c0eca41e6fd0ef72c157222b003b8ec63a (patch) | |
tree | 8e8abde088ef01aa4c2879dce4bec1b4bb521fa1 /sys/isofs/cd9660/cd9660_node.c | |
parent | 900ace8fe5c4a9b9baa3d186556688dd7c743553 (diff) |
fix tz calculation; bug found by rees
Diffstat (limited to 'sys/isofs/cd9660/cd9660_node.c')
-rw-r--r-- | sys/isofs/cd9660/cd9660_node.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/isofs/cd9660/cd9660_node.c b/sys/isofs/cd9660/cd9660_node.c index 56543062d35..23597ee6d80 100644 --- a/sys/isofs/cd9660/cd9660_node.c +++ b/sys/isofs/cd9660/cd9660_node.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cd9660_node.c,v 1.7 1997/11/08 17:21:06 niklas Exp $ */ +/* $OpenBSD: cd9660_node.c,v 1.8 1998/07/22 16:40:08 deraadt Exp $ */ /* $NetBSD: cd9660_node.c,v 1.17 1997/05/05 07:13:57 mycroft Exp $ */ /*- @@ -396,7 +396,8 @@ cd9660_tstamp_conv7(pi,pu) struct timespec *pu; { int crtime, days; - int y, m, d, hour, minute, second, tz; + int y, m, d, hour, minute, second; + signed char tz; y = pi[0] + 1900; m = pi[1]; @@ -404,7 +405,7 @@ cd9660_tstamp_conv7(pi,pu) hour = pi[3]; minute = pi[4]; second = pi[5]; - tz = pi[6]; + tz = (signed char) pi[6]; if (y < 1970) { pu->tv_sec = 0; |