Skip to content
Snippets Groups Projects
Commit d38457a0 authored by Gaëlle USSEGLIO's avatar Gaëlle USSEGLIO
Browse files

Merge branch 'warning_sprintf' into 'master'

WRG: fix warning with sprintf format

See merge request !14
parents 9462cfd2 42fa3bcc
No related branches found
No related tags found
1 merge request!14WRG: fix warning with sprintf format
......@@ -152,7 +152,7 @@ namespace otb
for (std::size_t listId=0; listId!= nbLists ; ++listId)
{
const int pos = sprintf(fmRatePrefix_, "%s%d.", FM_PREFIX.c_str(), (listId+1));
const int pos = sprintf(fmRatePrefix_, "%s%zu.", FM_PREFIX.c_str(), (listId+1));
assert(pos > 0 && pos < sizeof(fmRatePrefix_));
const std::string FMPrefix(fmRatePrefix_, pos);
......@@ -182,7 +182,7 @@ namespace otb
for (std::size_t listId=0; listId!= nbLists ; ++listId)
{
const int pos = sprintf(dcfPrefix_, "%s%d.", DCF_PREFIX.c_str(), (listId+1));
const int pos = sprintf(dcfPrefix_, "%s%zu.", DCF_PREFIX.c_str(), (listId+1));
assert(pos > 0 && pos < sizeof(dcfPrefix_));
const std::string DCFPrefix(dcfPrefix_, pos);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment