mirror of https://gerrit.osmocom.org/libosmocore
vty: Print the string using "%s", string to avoid security issues
The Mandriva GCC is more strict about handling format strings, the copyright string might contain escape sequences and then any memory could be read.
This commit is contained in:
parent
b53717f418
commit
ea8f238f04
|
@ -348,7 +348,7 @@ void vty_hello(struct vty *vty)
|
|||
app_name, VTY_NEWLINE, VTY_NEWLINE);
|
||||
|
||||
if (host.app_info->copyright)
|
||||
vty_out(vty, host.app_info->copyright);
|
||||
vty_out(vty, "%s", host.app_info->copyright);
|
||||
|
||||
if (host.motdfile) {
|
||||
FILE *f;
|
||||
|
|
Loading…
Reference in New Issue