From f902ec42f6e2703c11a0cad9d19237c4bced8b3e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 17 Feb 2019 15:02:43 +0100 Subject: [PATCH] fix 128 --- src/namestore/test_plugin_namestore.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/namestore/test_plugin_namestore.c b/src/namestore/test_plugin_namestore.c index b9c7fbef9..ff1f83780 100644 --- a/src/namestore/test_plugin_namestore.c +++ b/src/namestore/test_plugin_namestore.c @@ -11,7 +11,7 @@ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. - + You should have received a copy of the GNU Affero General Public License along with this program. If not, see . @@ -194,11 +194,19 @@ run (void *cls, } +#ifndef PATH_MAX +/** + * Assumed maximum path length (for the configuration file name). + */ +#define PATH_MAX 4096 +#endif + + int main (int argc, char *argv[]) { - char cfg_name[128]; + char cfg_name[PATH_MAX]; char *const xargv[] = { "test-plugin-namestore", "-c", -- 2.25.1