From: guy Date: Tue, 15 Dec 1998 04:11:58 +0000 (+0000) Subject: Fix the bitmask for the hour field in a DOS-format time (not that it X-Git-Url: http://git.samba.org/samba.git/?p=obnox%2Fwireshark%2Fwip.git;a=commitdiff_plain;h=71064ab5dbe3794aaea9a01805268bb1174dce2a Fix the bitmask for the hour field in a DOS-format time (not that it matters, as that code is commented out). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@125 f5534014-38df-0310-8fa8-9805f1628bb7 --- diff --git a/wiretap/ngsniffer.c b/wiretap/ngsniffer.c index 819dbf976d..8a84c47359 100644 --- a/wiretap/ngsniffer.c +++ b/wiretap/ngsniffer.c @@ -1,6 +1,6 @@ /* ngsniffer.c * - * $Id: ngsniffer.c,v 1.8 1998/12/13 05:08:04 gram Exp $ + * $Id: ngsniffer.c,v 1.9 1998/12/15 04:11:58 guy Exp $ * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez @@ -175,7 +175,7 @@ int ngsniffer_open(wtap *wth) tm.tm_mday = (start_date&0x1f); /* The time does not appear to act as an * offset; only the date - tm.tm_hour = (start_time&0xfc00)>>11; + tm.tm_hour = (start_time&0xf800)>>11; tm.tm_min = (start_time&0x7e0)>>5; tm.tm_sec = (start_time&0x1f)<<1;*/ tm.tm_hour = 0;