aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/test_datastore_api_management.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-02-17 15:07:24 +0100
committerChristian Grothoff <christian@grothoff.org>2019-02-17 15:07:24 +0100
commit91b0d53f8835bd274997eddb28b74ebc5ef00340 (patch)
treea26ce549c872db5d9a31d5756a2bf657de739a75 /src/datastore/test_datastore_api_management.c
parentf902ec42f6e2703c11a0cad9d19237c4bced8b3e (diff)
downloadgnunet-91b0d53f8835bd274997eddb28b74ebc5ef00340.tar.gz
gnunet-91b0d53f8835bd274997eddb28b74ebc5ef00340.zip
filenames can exceed 128 bytes, even in testcases
Diffstat (limited to 'src/datastore/test_datastore_api_management.c')
-rw-r--r--src/datastore/test_datastore_api_management.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/datastore/test_datastore_api_management.c b/src/datastore/test_datastore_api_management.c
index d592ccc80..d91fe748b 100644
--- a/src/datastore/test_datastore_api_management.c
+++ b/src/datastore/test_datastore_api_management.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
@@ -337,7 +337,7 @@ ignore_payload_cb (void *cls,
337static int 337static int
338test_plugin (const char *cfg_name) 338test_plugin (const char *cfg_name)
339{ 339{
340 char libname[128]; 340 char libname[PATH_MAX];
341 struct GNUNET_CONFIGURATION_Handle *cfg; 341 struct GNUNET_CONFIGURATION_Handle *cfg;
342 struct GNUNET_DATASTORE_PluginFunctions *api; 342 struct GNUNET_DATASTORE_PluginFunctions *api;
343 struct GNUNET_DATASTORE_PluginEnvironment env; 343 struct GNUNET_DATASTORE_PluginEnvironment env;
@@ -378,7 +378,7 @@ test_plugin (const char *cfg_name)
378int 378int
379main (int argc, char *argv[]) 379main (int argc, char *argv[])
380{ 380{
381 char cfg_name[128]; 381 char cfg_name[PATH_MAX];
382 int ret; 382 int ret;
383 383
384 plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]); 384 plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]);