]> git.sur5r.net Git - openldap/blobdiff - libraries/liblmdb/mdb_load.c
Happy New Year
[openldap] / libraries / liblmdb / mdb_load.c
index 053cc88d256058a2169e52d585c3b37860a3579e..cf1d42e93bc7d3b8c9271341dc8f270a257c1ba1 100644 (file)
@@ -1,6 +1,6 @@
 /* mdb_load.c - memory-mapped database load tool */
 /*
- * Copyright 2011-2016 Howard Chu, Symas Corp.
+ * Copyright 2011-2018 Howard Chu, Symas Corp.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -248,7 +248,8 @@ badend:
                                        c2 += 2;
                                }
                        } else {
-                               c1++; c2++;
+                               /* copies are redundant when no escapes were used */
+                               *c1++ = *c2++;
                        }
                }
        } else {