Increase KBR5_BUFSIZ to 2048 and use it in config_file.c

This commit is contained in:
Asanka C. Herath
2010-11-22 14:24:46 -05:00
parent aaeef50199
commit 5b91a397f8
2 changed files with 3 additions and 3 deletions

View File

@@ -154,7 +154,7 @@ static krb5_error_code
parse_list(struct fileptr *f, unsigned *lineno, krb5_config_binding **parent,
const char **err_message)
{
char buf[BUFSIZ];
char buf[KRB5_BUFSIZ];
krb5_error_code ret;
krb5_config_binding *b = NULL;
unsigned beg_lineno = *lineno;
@@ -352,7 +352,7 @@ krb5_config_parse_debug (struct fileptr *f,
{
krb5_config_section *s = NULL;
krb5_config_binding *b = NULL;
char buf[BUFSIZ];
char buf[KRB5_BUFSIZ];
krb5_error_code ret;
while (config_fgets(buf, sizeof(buf), f) != NULL) {

View File

@@ -212,7 +212,7 @@ struct _krb5_krb_auth_data;
#endif
#define KRB5_BUFSIZ 1024
#define KRB5_BUFSIZ 2048
typedef enum {
KRB5_INIT_CREDS_TRISTATE_UNSET = 0,