diff options
| author | Paul Jakma <paul@quagga.net> | 2011-03-23 10:38:45 +0000 | 
|---|---|---|
| committer | Paul Jakma <paul@quagga.net> | 2011-03-23 10:38:45 +0000 | 
| commit | db07ad7358cb5e26358326332629ffb658f5747a (patch) | |
| tree | c8663d225fddb5ce7f6bfaef7b1cdc797932cca4 | |
| parent | 3bde17f1af635c9ca19df0b3516cb8ad0376e6d3 (diff) | |
| parent | fc95186c30884c96543aecfc56cfe5b08774525b (diff) | |
Merge branch 'master' of ssh://code.quagga.net/var/git/quagga
| -rw-r--r-- | lib/command.c | 2 | ||||
| -rw-r--r-- | lib/if.c | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/lib/command.c b/lib/command.c index 5a13f39c..264e0f7b 100644 --- a/lib/command.c +++ b/lib/command.c @@ -3056,7 +3056,7 @@ DEFUN (config_logmsg,    if ((level = level_match(argv[0])) == ZLOG_DISABLED)      return CMD_ERR_NO_MATCH; -  zlog(NULL, level, ((message = argv_concat(argv, argc, 1)) ? message : "")); +  zlog(NULL, level, "%s", ((message = argv_concat(argv, argc, 1)) ? message : ""));    if (message)      XFREE(MTYPE_TMP, message);    return CMD_SUCCESS; @@ -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. */ | 
