aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-05-10 02:55:01 +1000
committerGravatar axel <axel@liljencrantz.se>2006-05-10 02:55:01 +1000
commitb110a0ae211e0febe1efc8f6d79f4dc993dc04e0 (patch)
tree2280b4c80a1ac64ea872f6bb7046cc433bd6e45e
parent48d9c38d1e976b4775e41166a803cb8a082059b2 (diff)
Allow backslash escape fur null byte
darcs-hash:20060509165501-ac50b-3a69a7ed0b96d5be7860aa997b7c77e37a6b1dc7.gz
-rw-r--r--common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.c b/common.c
index 131e5ce0..79119aa8 100644
--- a/common.c
+++ b/common.c
@@ -890,7 +890,7 @@ wchar_t *unescape( const wchar_t * orig, int unescape_special )
res=(res*base)|d;
}
- if( (res > 0) && (res <= max_val) )
+ if( (res <= max_val) )
{
in[out_pos] = (byte?ENCODE_DIRECT_BASE:0)+res;
}