Allow backslash escape fur null byte

darcs-hash:20060509165501-ac50b-3a69a7ed0b96d5be7860aa997b7c77e37a6b1dc7.gz
This commit is contained in:
axel 2006-05-10 02:55:01 +10:00
parent 48d9c38d1e
commit b110a0ae21

View File

@ -890,7 +890,7 @@ wchar_t *unescape( const wchar_t * orig, int unescape_special )
res=(res*base)|d; res=(res*base)|d;
} }
if( (res > 0) && (res <= max_val) ) if( (res <= max_val) )
{ {
in[out_pos] = (byte?ENCODE_DIRECT_BASE:0)+res; in[out_pos] = (byte?ENCODE_DIRECT_BASE:0)+res;
} }