diff options
author | 1998-07-22 16:40:08 +0000 | |
---|---|---|
committer | 1998-07-22 16:40:08 +0000 | |
commit | 1009d2666953de6c3709ed345e759b107ff9ec2f (patch) | |
tree | 729e78bb95cb04a60f4b71d89ffb6b8530c04960 | |
parent | o for some reason fprintf.c started to conflict with the fprintf defn (diff) | |
download | wireguard-openbsd-1009d2666953de6c3709ed345e759b107ff9ec2f.tar.xz wireguard-openbsd-1009d2666953de6c3709ed345e759b107ff9ec2f.zip |
fix tz calculation; bug found by rees
-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; |