From: Kurt Zeilenga Date: Tue, 24 Nov 1998 02:29:53 +0000 (+0000) Subject: string_expand used hardcoded size instead of bufsiz argument. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~1027 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=58f36940c50f3346e1a03f770c77972d7dbee1ff;p=openldap string_expand used hardcoded size instead of bufsiz argument. pointed out by Jorg Pietschmann . --- diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index 72a89e2751..7c922782fc 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -478,7 +478,7 @@ string_expand( newbuf[0] = '\0'; flag = 0; - for ( dp = newbuf, sp = pat; size < 512 && *sp ; sp++) { + for ( dp = newbuf, sp = pat; size < bufsiz && *sp ; sp++) { /* did we previously see a $ */ if (flag) { if (*sp == '$') {