diff options
Diffstat (limited to 'examples/ipsec-secgw/parser.c')
-rw-r--r-- | examples/ipsec-secgw/parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ipsec-secgw/parser.c b/examples/ipsec-secgw/parser.c index 9d0ea462..e0881b74 100644 --- a/examples/ipsec-secgw/parser.c +++ b/examples/ipsec-secgw/parser.c @@ -544,7 +544,7 @@ parse_cfg_file(const char *cfg_filename) goto error_exit; } - strncpy(str + strlen(str), oneline, + memcpy(str + strlen(str), oneline, strlen(oneline)); continue; |