From 7950e37eed007e4546d08aec2ba444414df69c21 Mon Sep 17 00:00:00 2001 From: Rainer Keller Date: Thu, 14 May 2009 00:30:32 +0000 Subject: [PATCH] - Fix Coverity CID 890; Use snprintf instead sprintf This commit was SVN r21231. --- orte/orted/orted_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orte/orted/orted_main.c b/orte/orted/orted_main.c index 3701f42fca..b6b82bb634 100644 --- a/orte/orted/orted_main.c +++ b/orte/orted/orted_main.c @@ -454,8 +454,8 @@ int orte_daemon(int argc, char *argv[]) } /* define a log file name in the session directory */ - sprintf(log_file, "output-orted-%s-%s.log", - jobidstring, orte_process_info.nodename); + snprintf(log_file, PATH_MAX, "output-orted-%s-%s.log", + jobidstring, orte_process_info.nodename); log_path = opal_os_path(false, orte_process_info.tmpdir_base, orte_process_info.top_session_dir,