X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Flibldap%2Ft61.c;h=ae0843b97f8e6509273b7ae094261fad41895570;hb=7164c4c66215da39f03e353a9c72eba408abddbf;hp=3245c42fc56b63339458e641dceca27569381a29;hpb=c890c96d13c53cf0fa1d9580fea2ab47a2c8caa9;p=openldap diff --git a/libraries/libldap/t61.c b/libraries/libldap/t61.c index 3245c42fc5..ae0843b97f 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-2008 The OpenLDAP Foundation. + * Copyright 2002-2011 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;