Fix the bitmask for the hour field in a DOS-format time (not that it
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 15 Dec 1998 04:11:58 +0000 (04:11 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 15 Dec 1998 04:11:58 +0000 (04:11 +0000)
matters, as that code is commented out).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@125 f5534014-38df-0310-8fa8-9805f1628bb7

wiretap/ngsniffer.c

index 819dbf976d2ca53fe195e23ff8e4480c133e130e..8a84c47359d618bb2f6422d6ffe6ed4c76b0b178 100644 (file)
@@ -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 <gram@verdict.uthscsa.edu>
@@ -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;