summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-08-02 21:26:02 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-08-02 21:26:02 +0200
commitea8f238f04c0477d0071398851c9125857961d44 (patch)
tree121e04ccbc3d42d07fe07e9d51dfabe41fd86a86 /src
parentb53717f4180746cebd7a39e738d7c6cb298ae762 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/vty/vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vty/vty.c b/src/vty/vty.c
index e529ee70..eda3699c 100644
--- a/src/vty/vty.c
+++ b/src/vty/vty.c
@@ -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;