diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-12-09 17:28:49 +0000 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2010-02-04 22:40:24 +0100 |
commit | 75f1999b2c42042725b9ee782e135b0300cc384e (patch) | |
tree | 9579f501df6efba60b5107fd32c858bfecf60970 /lib/if.c | |
parent | a8c48bb76f291c673438d2061753d05a0d9b3276 (diff) | |
download | quagga-75f1999b2c42042725b9ee782e135b0300cc384e.tar.bz2 quagga-75f1999b2c42042725b9ee782e135b0300cc384e.tar.xz |
vty: fix warnings
Gcc now warns if function that takes printf style formatting is
passed a non-constant string. This avoid issues when a format character
is entered in some command.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/if.c')
-rw-r--r-- | lib/if.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -664,7 +664,7 @@ connected_log (struct connected *connected, char *str) strncat (logbuf, inet_ntop (p->family, &p->u.prefix, buf, BUFSIZ), BUFSIZ - strlen(logbuf)); } - zlog (NULL, LOG_INFO, logbuf); + zlog (NULL, LOG_INFO, "%s", logbuf); } /* If two connected address has same prefix return 1. */ |