From dfceeaeb7c414e22c6037b8619b112b94ab202b6 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 15 Dec 1998 04:11:58 +0000 Subject: [PATCH] Fix the bitmask for the hour field in a DOS-format time (not that it matters, as that code is commented out). svn path=/trunk/; revision=125 --- wiretap/ngsniffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;