mirror of /home/gitosis/repositories/libowfat.git
also escape negative chars (we are in utf-8 land now, no longer latin1)
This commit is contained in:
parent
5211d82384
commit
28d01b3688
|
@ -27,7 +27,7 @@ size_t fmt_cescape2(char* dest,const char* src,size_t len,const char* escapeme)
|
|||
written+=2;
|
||||
break;
|
||||
default:
|
||||
if (s[i]<' ' || escapeme[str_chr(escapeme,s[i])]==s[i]) {
|
||||
if (s[i]<' ' || s[i]>=127 || escapeme[str_chr(escapeme,s[i])]==s[i]) {
|
||||
if (dest) {
|
||||
dest[written]='\\';
|
||||
dest[written+1]='x';
|
||||
|
|
Loading…
Reference in New Issue