projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
decompress_iob(): Cast value to unsigned char before shifting
[privoxy.git]
/
parsers.c
diff --git
a/parsers.c
b/parsers.c
index
35e2c33
..
f905c92
100644
(file)
--- a/
parsers.c
+++ b/
parsers.c
@@
-609,7
+609,7
@@
jb_err decompress_iob(struct client_state *csp)
*/
int skip_bytes;
skip_bytes = *cur++;
- skip_bytes += *cur++ << 8;
+ skip_bytes +=
(unsigned char)
*cur++ << 8;
/*
* The number of bytes to skip should be positive