diff options
author | Sander Vrijders <[email protected]> | 2016-04-27 16:17:36 +0200 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2016-04-27 16:17:36 +0200 |
commit | aed2c2e59190b0d0fb5e89d992063fcc538784fc (patch) | |
tree | a2264c5f9567528fdb8ddca181400a7722c54c50 /src/ipcpd/shim-udp | |
parent | 34c40b7ba465382cfc3ef83af00793dfbb8fa943 (diff) | |
download | ouroboros-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.
Diffstat (limited to 'src/ipcpd/shim-udp')
-rw-r--r-- | src/ipcpd/shim-udp/tests/shim_udp_test.c | 4 |
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); |