1
1
Use snprintf instead sprintf

This commit was SVN r21231.
Этот коммит содержится в:
Rainer Keller 2009-05-14 00:30:32 +00:00
родитель b3daf7184a
Коммит 7950e37eed

Просмотреть файл

@ -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,