]> git.sur5r.net Git - openldap/commitdiff
Use macro to set size
authorKurt Zeilenga <kurt@openldap.org>
Sun, 1 Sep 2002 05:48:32 +0000 (05:48 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 1 Sep 2002 05:48:32 +0000 (05:48 +0000)
libraries/liblutil/csn.c

index 0a18918b3bdc20bfe6a576e090d7c3c1b82aea81..752ee35f89a3f2b7f6e656ab0711acd9f827331e 100644 (file)
@@ -65,7 +65,7 @@ lutil_csnstr(char *buf, size_t len, unsigned int replica, unsigned int mod)
 int
 main(int argc, char **argv)
 {
-       char buf[256];
+       char buf[ LDAP_LUTIL_CSNSTR_BUFSIZE ];
 
        if ( ! lutil_csnstr( buf, (size_t) 10, 0, 0 ) ) {
                fprintf(stderr, "failed lutil_csnstr\n");