From aed2c2e59190b0d0fb5e89d992063fcc538784fc Mon Sep 17 00:00:00 2001
From: Sander Vrijders <sander.vrijders@intec.ugent.be>
Date: Wed, 27 Apr 2016 16:17:36 +0200
Subject: 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.
---
 src/ipcpd/shim-udp/tests/shim_udp_test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/ipcpd')

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);
-- 
cgit v1.2.3