]> git.openfabrics.org - ~shefty/ibacm.git/commitdiff
Increase size of available file name
authorSean Hefty <sean.hefty@intel.com>
Mon, 25 Mar 2013 21:04:57 +0000 (14:04 -0700)
committerSean Hefty <sean.hefty@intel.com>
Mon, 25 Mar 2013 21:04:57 +0000 (14:04 -0700)
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 <sean.hefty@intel.com>
src/acm.c

index 725cde29aa40029dab8ab86e9e3d1841315dbc5e..e956b09e5b0a454127d19ed77d463622e275c1c7 100644 (file)
--- 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))