Make sure we don't sign-extend the (binary) bytes of the message length.

svn path=/trunk/; revision=46792
This commit is contained in:
Guy Harris 2012-12-26 20:42:23 +00:00
parent d4b622de36
commit 074297d7dd
1 changed files with 1 additions and 1 deletions

View File

@ -1520,7 +1520,7 @@ pipe_convert_header(const guchar *header, int header_len, char *indicator, int *
/* convert header values */
*indicator = header[0];
*block_len = header[1]<<16 | header[2]<<8 | header[3];
*block_len = (header[1]&0xFF)<<16 | (header[2]&0xFF)<<8 | (header[3]&0xFF);
}
/* read a message from the sending pipe in the standard format