Commit 1849251d authored by Victor Poughon's avatar Victor Poughon
Browse files

BUG: fix assertion error on S1 (bis)

parent 9dfbb243
Pipeline #793 passed with stage
in 25 minutes and 49 seconds
...@@ -1153,7 +1153,7 @@ namespace ossimplugins ...@@ -1153,7 +1153,7 @@ namespace ossimplugins
for(std::vector<ossimRefPtr<ossimXmlNode> >::iterator itNode = xnodes.begin(); itNode!=xnodes.end();++itNode,++idx) for(std::vector<ossimRefPtr<ossimXmlNode> >::iterator itNode = xnodes.begin(); itNode!=xnodes.end();++itNode,++idx)
{ {
int pos = s_printf(prefix, "%s[%d].", GCP_PREFIX.c_str(), idx); int pos = s_printf(prefix, "%s[%d].", GCP_PREFIX.c_str(), idx);
assert(pos >= SR_PREFIX.size()+4 && pos < 1024); assert(pos >= GCP_PREFIX.size()+4 && pos < sizeof(prefix));
#if defined(USE_BOOST_TIME) #if defined(USE_BOOST_TIME)
const TimeType azimuthTime = getTimeFromFirstNode(**itNode, attAzimuthTime); const TimeType azimuthTime = getTimeFromFirstNode(**itNode, attAzimuthTime);
add(theProductKwl, prefix, attAzimuthTime, azimuthTime); add(theProductKwl, prefix, attAzimuthTime, azimuthTime);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment