diff options
Diffstat (limited to 'filter')
-rw-r--r-- | filter/filter_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/filter_test.c b/filter/filter_test.c index 54ea3e9b..a02f0832 100644 --- a/filter/filter_test.c +++ b/filter/filter_test.c @@ -35,7 +35,7 @@ parse_config_file(const void *argv) const struct parse_config_file_arg *arg = argv; size_t fn_size = strlen(arg->filename) + 1; char *filename = alloca(fn_size); - strncpy(filename, arg->filename, fn_size); + memcpy(filename, arg->filename, fn_size); *(arg->cp) = bt_config_file_parse(filename); return !!*(arg->cp); |