Hi, i read some code and found the following construction in servers/slapd/acl.c: string_expand(char *newbuf, int bufsiz, char *pat, char *match, regmatch_t *matches) { [decls snipped] flag = 0; for ( dp = newbuf, sp = pat; size < 512 && *sp ; sp++) { ---> ^^^ /* did we previously see a $ */ if (flag) { if (*sp == '$') { *dp++ = '$'; size++; } else if (*sp >= '0' && *sp <= '9' ) { [rest snipped] Should't the marked 512 rather be a `bufsiz'? The bufsiz parameter is never used in the function. There are more comments about style and efficient data structures. Regards J.Pietschmann
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature