Skip to content

Commit

Permalink
rtlog: fix warning in logging dlopen error
Browse files Browse the repository at this point in the history
ubx.c:116:3: error: format not a string literal and no format
arguments [-Werror=format-security]

   ubx_log(UBX_LOGLEVEL_ERR, ni, "dlopen", dlerror())

Signed-off-by: Markus Klotzbuecher <mk@mkio.de>
  • Loading branch information
kmarkus committed Nov 6, 2019
1 parent 5ea55cb commit bbcef7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libubx/ubx.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ int ubx_module_load(ubx_node_info_t* ni, const char *lib)
}

if((mod->handle = dlopen(lib, RTLD_NOW)) == NULL) {
ubx_log(UBX_LOGLEVEL_ERR, ni, "dlopen", dlerror())
ubx_log(UBX_LOGLEVEL_ERR, ni, "dlopen", "%s", dlerror())
goto out_err_free_id;
}

Expand Down

0 comments on commit bbcef7e

Please sign in to comment.