diff options
| author | liuwentan <[email protected]> | 2023-10-25 15:36:05 +0800 |
|---|---|---|
| committer | liuwentan <[email protected]> | 2023-10-25 15:36:05 +0800 |
| commit | 9f7c82e6b0980ee8a9050eb44b381b45052fa8a7 (patch) | |
| tree | 534046462341a199ceeec11590ff496029b5071d /src/maat_utils.c | |
| parent | edab9520bd2a7f628cee39d3933afc4671d26c46 (diff) | |
[PATCH]support \r\n escape
Diffstat (limited to 'src/maat_utils.c')
| -rw-r--r-- | src/maat_utils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/maat_utils.c b/src/maat_utils.c index 9f91322..6e1c84a 100644 --- a/src/maat_utils.c +++ b/src/maat_utils.c @@ -219,6 +219,12 @@ char *str_unescape(char *s) case '\\': s[j] = '\\'; break; + case 'r': + s[j] = '\r'; + break; + case 'n': + s[j] = '\n'; + break; default: s[j] = s[i]; i--; //undo the followed i++ |
