mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-18 09:32:47 +08:00
Allow backslash escape fur null byte
darcs-hash:20060509165501-ac50b-3a69a7ed0b96d5be7860aa997b7c77e37a6b1dc7.gz
This commit is contained in:
parent
48d9c38d1e
commit
b110a0ae21
2
common.c
2
common.c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user