From: Sean Hefty Date: Mon, 25 Mar 2013 21:04:57 +0000 (-0700) Subject: Increase size of available file name X-Git-Tag: v1.0.8~25 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=3af13842221e3264035c157fb3282f5de43b5c94;p=~shefty%2Fibacm.git Increase size of available file name ibacm limits the path to the log and lock file to 32 characters. This is too small for some users. Signed-off-by: Sean Hefty --- diff --git a/src/acm.c b/src/acm.c index 725cde2..e956b09 100644 --- a/src/acm.c +++ b/src/acm.c @@ -3068,7 +3068,7 @@ static void acm_set_options(void) { FILE *f; char s[120]; - char opt[32], value[32]; + char opt[32], value[256]; if (!(f = fopen(opts_file, "r"))) return; @@ -3077,7 +3077,7 @@ static void acm_set_options(void) if (s[0] == '#') continue; - if (sscanf(s, "%32s%32s", opt, value) != 2) + if (sscanf(s, "%32s%256s", opt, value) != 2) continue; if (!stricmp("log_file", opt))