aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-02-17 15:02:43 +0100
committerChristian Grothoff <christian@grothoff.org>2019-02-17 15:02:52 +0100
commitf902ec42f6e2703c11a0cad9d19237c4bced8b3e (patch)
treef53ee5bd463a13c6f548f4364354d6c025d65b73 /src/namestore
parent0bdbb0e16219b7fa1332f526d83e32489db2cfc5 (diff)
downloadgnunet-f902ec42f6e2703c11a0cad9d19237c4bced8b3e.tar.gz
gnunet-f902ec42f6e2703c11a0cad9d19237c4bced8b3e.zip
fix 128
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/test_plugin_namestore.c12
1 files 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 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
@@ -194,11 +194,19 @@ run (void *cls,
194} 194}
195 195
196 196
197#ifndef PATH_MAX
198/**
199 * Assumed maximum path length (for the configuration file name).
200 */
201#define PATH_MAX 4096
202#endif
203
204
197int 205int
198main (int argc, 206main (int argc,
199 char *argv[]) 207 char *argv[])
200{ 208{
201 char cfg_name[128]; 209 char cfg_name[PATH_MAX];
202 char *const xargv[] = { 210 char *const xargv[] = {
203 "test-plugin-namestore", 211 "test-plugin-namestore",
204 "-c", 212 "-c",