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:
Holger Hans Peter Freyther 2012-08-02 21:26:02 +02:00
parent b53717f418
commit ea8f238f04
1 changed files with 1 additions and 1 deletions

View File

@ -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;