diff options
author | Maria Matejka <mq@ucw.cz> | 2019-02-08 11:19:04 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2019-07-09 14:37:14 +0200 |
commit | 1322e205e2066c0da8526bed505dc699d0f5b92a (patch) | |
tree | 387c7aeaafd5eccde69e9df851dea3e77d5c0c24 /filter | |
parent | bb001af0e8022f6445ff50b7f32c9ac102cc244e (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 be7fd521..916290ed 100644 --- a/filter/filter_test.c +++ b/filter/filter_test.c @@ -29,7 +29,7 @@ parse_config_file(const void *filename_void) size_t fn_size = strlen((const char *) filename_void) + 1; char *filename = alloca(fn_size); - strncpy(filename, filename_void, fn_size); + memcpy(filename, filename_void, fn_size); struct config *c = bt_config_file_parse(filename); bt_bird_cleanup(); |