ITS#9068 fix backslash escaping

mdb_load wasn't properly inserting escaped backslashes into the data.
mdb_dump wasn't escaping backslashes when generating printable output.
This commit is contained in:
Howard Chu
2019-08-26 17:51:53 +01:00
committed by Howard Chu
parent cdfa2e58df
commit e907305c6c
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -64,6 +64,8 @@ static void text(MDB_val *v)
end = c + v->mv_size;
while (c < end) {
if (isprint(*c)) {
if (*c == '\\')
putchar('\\');
putchar(*c);
} else {
putchar('\\');