Skip to content

Commit

Permalink
ENH: Remove last magic number
Browse files Browse the repository at this point in the history
  • Loading branch information
jmichel-otb committed Jul 12, 2016
1 parent 3a8ff49 commit 1a9a5fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gdal/frmts/derived/deriveddataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ GDALDataset * DerivedDataset::Open(GDALOpenInfo * poOpenInfo)
}

/* Next, we need to now which derived dataset to compute */
const size_t alg_pos = filename.find(":",dsds_pos+20);
const size_t alg_pos = filename.find(":",dsds_pos+nPrefixLen+1);
if (alg_pos == std::string::npos)
{
/* Unable to Open if we do not find the name of the derived dataset */
Expand Down

0 comments on commit 1a9a5fa

Please sign in to comment.