From: Christian Grothoff Date: Sun, 17 Feb 2019 14:02:43 +0000 (+0100) Subject: fix 128 X-Git-Tag: v0.11.0~63^2~40 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f902ec42f6e2703c11a0cad9d19237c4bced8b3e;p=oweals%2Fgnunet.git fix 128 --- 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",