Index: packet-ansi_map.c
===================================================================
RCS file: /cvsroot/ethereal/packet-ansi_map.c,v
retrieving revision 1.4
diff -u -r1.4 packet-ansi_map.c
--- packet-ansi_map.c	16 Oct 2003 18:14:32 -0000	1.4
+++ packet-ansi_map.c	28 Oct 2003 16:30:47 -0000
@@ -713,18 +713,16 @@
 	/*
 	 * unpack first value in byte
 	 */
-	i = *in;
-	i &= 0x0F;
-	*out++ = dgt->out[i];
+	i = *in++;
+	*out++ = dgt->out[i & 0x0f];
 	cnt++;
 
 	/*
 	 * unpack second value in byte
 	 */
-	i = *in++;
 	i >>= 4;
 
-	if (i == 0xff)	/* odd number bytes - hit filler */
+	if (i == 0x0f)	/* odd number bytes - hit filler */
 	    break;
 
 	*out++ = dgt->out[i];
