projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
da981ad
)
Fix an assertion in pcrs_compile_replacement(), nul bytes are actually fine
author
Fabian Keil
<fk@fabiankeil.de>
Mon, 29 Oct 2012 12:01:31 +0000
(12:01 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Mon, 29 Oct 2012 12:01:31 +0000
(12:01 +0000)
pcrs.c
patch
|
blob
|
history
diff --git
a/pcrs.c
b/pcrs.c
index
89de9bc
..
4aeae09
100644
(file)
--- a/
pcrs.c
+++ b/
pcrs.c
@@
-1,4
+1,4
@@
-const char pcrs_rcs[] = "$Id: pcrs.c,v 1.4
1 2012/05/24 15:02:38
fabiankeil Exp $";
+const char pcrs_rcs[] = "$Id: pcrs.c,v 1.4
2 2012/05/24 15:04:34
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/pcrs.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/pcrs.c,v $
@@
-301,7
+301,7
@@
static pcrs_substitute *pcrs_compile_replacement(const char *replacement, int tr
*/
const int ascii_value = xtoi(&replacement[i+2]);
*/
const int ascii_value = xtoi(&replacement[i+2]);
- assert(ascii_value > 0);
+ assert(ascii_value >
=
0);
assert(ascii_value < 256);
text[k++] = (char)ascii_value;
i += 4;
assert(ascii_value < 256);
text[k++] = (char)ascii_value;
i += 4;