diff options
author | Maria Matejka <mq@ucw.cz> | 2019-02-08 11:19:04 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2019-02-20 22:30:54 +0100 |
commit | 0a793ebc6059f4354c62ccec62ef7c950988ca4a (patch) | |
tree | ff9f03cbfaae14a16751a73463aeb4f6f2c29d42 /filter | |
parent | 8bdb05edb2b4e1d2989ed98d67992047ad69443c (diff) |
Test: Fixed annoying warnings (and possible obscure bugs).
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); |