aboutsummaryrefslogtreecommitdiff
path: root/external/db_drivers/liblmdb/mdb_load.c
diff options
context:
space:
mode:
Diffstat (limited to 'external/db_drivers/liblmdb/mdb_load.c')
-rw-r--r--external/db_drivers/liblmdb/mdb_load.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/external/db_drivers/liblmdb/mdb_load.c b/external/db_drivers/liblmdb/mdb_load.c
index ad911c088..e900ae660 100644
--- a/external/db_drivers/liblmdb/mdb_load.c
+++ b/external/db_drivers/liblmdb/mdb_load.c
@@ -236,7 +236,7 @@ badend:
while (c2 < end) {
if (*c2 == '\\') {
if (c2[1] == '\\') {
- c1++; c2 += 2;
+ *c1++ = *c2;
} else {
if (c2+3 > end || !isxdigit(c2[1]) || !isxdigit(c2[2])) {
Eof = 1;
@@ -244,8 +244,8 @@ badend:
return EOF;
}
*c1++ = unhex(++c2);
- c2 += 2;
}
+ c2 += 2;
} else {
/* copies are redundant when no escapes were used */
*c1++ = *c2++;