Ethereal-dev: Re: [Ethereal-dev] NDMP patch 2

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxx>
Date: Fri, 4 Jan 2002 15:56:15 -0800 (PST)
> attached is a patch for NDMP.

Checked in.

It got a compiler warning from

	size = tvb_get_ntohl(tvb, offset)&NDMP_FRAGLEN + 4;

so I changed it to

	size = (tvb_get_ntohl(tvb, offset)&NDMP_FRAGLEN) + 4;

("+" has higher precedence than "&", so the first expression was
interpreted as

	size = tvb_get_ntohl(tvb, offset)&(NDMP_FRAGLEN + 4);

which is presumably not what was intended).