From: Kurt Zeilenga Date: Fri, 26 Oct 2001 02:01:42 +0000 (+0000) Subject: Add nul termination X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~922 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f3f72c5d2a75d18eeb2df6780ff960ffcb2b8fe1;p=openldap Add nul termination --- diff --git a/libraries/libldap/url.c b/libraries/libldap/url.c index 48b8f7b30d..5dc0b7038f 100644 --- a/libraries/libldap/url.c +++ b/libraries/libldap/url.c @@ -286,6 +286,7 @@ static int hex_escape( char *buf, const char *s, int list ) } } + buf[pos] = '\0'; return pos; }