]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/t61.c
Merge remote-tracking branch 'origin/mdb.master' into OPENLDAP_REL_ENG_2_4
[openldap] / libraries / libldap / t61.c
index 3245c42fc56b63339458e641dceca27569381a29..2029081b0928ec9ba7b9a58831ec34c63559895f 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2002-2008 The OpenLDAP Foundation.
+ * Copyright 2002-2014 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -684,6 +684,8 @@ int ldap_utf8s_to_t61s( struct berval *src, struct berval *dst )
                        *d++ = 0x3f;
                        break;
                }
+               i += j;
+               c += j;
        }
        *d = '\0';
        return LDAP_SUCCESS;