X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Ft61.c;h=9397e1d5d17fbfff5ef9ff19dfb481b37531aa38;hb=113538806ffcdd83da45ad39d0ab54d515ffb1ae;hp=023e1955ff0e9b6a6a6838d664b66ae1408432eb;hpb=f7f171ed409b5ff9c53211c5538a47d753ede58a;p=openldap diff --git a/libraries/libldap/t61.c b/libraries/libldap/t61.c index 023e1955ff..9397e1d5d1 100644 --- a/libraries/libldap/t61.c +++ b/libraries/libldap/t61.c @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 2002-2003 The OpenLDAP Foundation. + * Copyright 2002-2012 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;