From: Jouni Malinen Date: Thu, 8 Oct 2015 09:10:24 +0000 (+0300) Subject: Increase the maximum hostapd.conf line length to 4096 bytes X-Git-Tag: hostap_2_6~1558 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef50e41028adff82afae864487adaab2df97c563;p=thirdparty%2Fhostap.git Increase the maximum hostapd.conf line length to 4096 bytes It was already possible to use longer values through the control interface SET command, but the configuration file parser was still limited to 512 byte lines. Increase this to 4096 bytes since some of the configuration parameters (e.g., anqp_elem) can be longer. Signed-off-by: Jouni Malinen --- diff --git a/hostapd/config_file.c b/hostapd/config_file.c index 29442a9a2..d65b805c1 100644 --- a/hostapd/config_file.c +++ b/hostapd/config_file.c @@ -3482,7 +3482,7 @@ struct hostapd_config * hostapd_config_read(const char *fname) { struct hostapd_config *conf; FILE *f; - char buf[512], *pos; + char buf[4096], *pos; int line = 0; int errors = 0; size_t i;