]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/t61.c
silence warnings
[openldap] / libraries / libldap / t61.c
index 5deb337bb87f67b3c94a44da24ae14fce89695ba..c4b10a8e8e261ed80ebfb609231d1b222e4d2bee 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2002-2006 The OpenLDAP Foundation.
+ * Copyright 2002-2009 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;