]> git.sur5r.net Git - openldap/commitdiff
string_expand used hardcoded size instead of bufsiz argument.
authorKurt Zeilenga <kurt@openldap.org>
Tue, 24 Nov 1998 02:29:53 +0000 (02:29 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 24 Nov 1998 02:29:53 +0000 (02:29 +0000)
pointed out by Jorg Pietschmann <pietsch@swissline.ch>.

servers/slapd/acl.c

index 72a89e2751086049b139b853a50a8d096ce366af..7c922782fc758496f1cc6a0f6001e26a99432e9b 100644 (file)
@@ -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 == '$') {