Bug fix: -backslash_codes "on" did not work outside quotes and with showing "\r"

This commit is contained in:
Thomas Schmitt 2015-06-24 16:15:44 +00:00
parent 7f9aca8d7f
commit 37e5ca6b38
2 changed files with 5 additions and 5 deletions

View File

@ -619,7 +619,7 @@ int Sfile_bsl_encoder(char **result, char *text, size_t text_len, int flag)
else if(*rpt == 12)
*(wpt++)= 'f';
else if(*rpt == 13)
*(wpt++)= 'c';
*(wpt++)= 'r';
else if(*rpt == 27)
*(wpt++)= 'e';
else if(*rpt == '\\')
@ -720,7 +720,7 @@ int Sfile_sep_make_argv(char *progname, char *line, char *separators,
if(l>0) {
strncpy(buf + bufl, start, l); buf[bufl + l]= 0;
if(bsl_mode >= 3) {
ret= Sfile_bsl_interpreter(buf, l, &eaten, 0);
ret= Sfile_bsl_interpreter(buf + bufl, l, &eaten, 0);
if(ret <= 0)
goto ex;
}
@ -746,7 +746,7 @@ int Sfile_sep_make_argv(char *progname, char *line, char *separators,
if(l>0) {
strncpy(buf + bufl, start, l); buf[bufl + l]= 0;
if(bsl_mode >= 3) {
ret= Sfile_bsl_interpreter(buf, l, &eaten, 0);
ret= Sfile_bsl_interpreter(buf + bufl, l, &eaten, 0);
if(ret <= 0)
goto ex;
}
@ -774,7 +774,7 @@ int Sfile_sep_make_argv(char *progname, char *line, char *separators,
if(l>0) {
strncpy(buf + bufl, start, l); buf[bufl + l]= 0;
if(bsl_mode >= 3) {
ret= Sfile_bsl_interpreter(buf, l, &eaten, 0);
ret= Sfile_bsl_interpreter(buf + bufl, l, &eaten, 0);
if(ret <= 0)
goto ex;
}

View File

@ -1 +1 @@
#define Xorriso_timestamP "2015.05.17.204220"
#define Xorriso_timestamP "2015.06.24.155902"