diff --git a/etc/cnid_dbd/db_param.c b/etc/cnid_dbd/db_param.c index 84f3959fe3d2..354aeadcd3cd 100644 --- a/etc/cnid_dbd/db_param.c +++ b/etc/cnid_dbd/db_param.c @@ -123,7 +123,7 @@ struct db_param *db_param_read(char *dir) } parse_err = 0; - while ((items = fscanf(fp, " %s %s", key, val)) != EOF) { + while ((items = fscanf(fp, " %64s %1024s", key, val)) != EOF) { if (items != 2) { LOG(log_error, logtype_cnid, "error parsing config file"); parse_err++;