diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-04-20 23:59:31 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2020-04-21 01:14:33 +0200 |
commit | fc746f1c01daf34600d83293647199e81fcb8316 (patch) | |
tree | f26168f502d6b5faaffff8c7945acbb88c885fa1 /lib/vty.c | |
parent | *: sprintf -> snprintf (diff) | |
download | frr-fc746f1c01daf34600d83293647199e81fcb8316.tar.xz frr-fc746f1c01daf34600d83293647199e81fcb8316.zip |
*: manually remove some more sprintf
Take care of some more complicated cases by hand
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/vty.c')
-rw-r--r-- | lib/vty.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2380,7 +2380,7 @@ static FILE *vty_use_backup_config(const char *fullpath) } fullpath_tmp = malloc(strlen(fullpath) + 8); - sprintf(fullpath_tmp, "%s.XXXXXX", fullpath); + snprintf(fullpath_tmp, strlen(fullpath) + 8, "%s.XXXXXX", fullpath); /* Open file to configuration write. */ tmp = mkstemp(fullpath_tmp); |