summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-04-27 16:17:36 +0200
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-04-27 16:17:36 +0200
commitaed2c2e59190b0d0fb5e89d992063fcc538784fc (patch)
treea2264c5f9567528fdb8ddca181400a7722c54c50
parent34c40b7ba465382cfc3ef83af00793dfbb8fa943 (diff)
downloadouroboros-aed2c2e59190b0d0fb5e89d992063fcc538784fc.tar.gz
ouroboros-aed2c2e59190b0d0fb5e89d992063fcc538784fc.zip
ipcpd: Fix shim-udp-test
This fixes the shim-udp-test, which was using a non null-terminated string, which caused it to fail on some systems.
-rw-r--r--src/ipcpd/shim-udp/tests/shim_udp_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipcpd/shim-udp/tests/shim_udp_test.c b/src/ipcpd/shim-udp/tests/shim_udp_test.c
index d2b9c642..036f5877 100644
--- a/src/ipcpd/shim-udp/tests/shim_udp_test.c
+++ b/src/ipcpd/shim-udp/tests/shim_udp_test.c
@@ -41,8 +41,8 @@ int shim_udp_test(int argc, char ** argv)
char * ipcp_name = "test-shim-ipcp";
int i = 0;
- char bogus[15];
- memset(&bogus, 0, 15);
+ char bogus[16];
+ memset(&bogus, 0, 16);
struct dif_config conf;
memset(&conf, 0, sizeof conf);