Skip to content

Commit

Permalink
Apply third round of review
Browse files Browse the repository at this point in the history
Signed-off-by: L. E. Segovia <13498015+amyspark@users.noreply.github.com>
  • Loading branch information
amyspark committed Nov 16, 2021
1 parent 7f441da commit e7c3aac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/OpenColorIO/ParseUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ bool StringVecToFloatVec(std::vector<float> &floatArray, const StringUtils::Stri
{
float x = NAN;
const char *str = lineParts[i].c_str();
const auto result = NumberUtils::from_chars(str, str + strlen(str), x);
const auto result = NumberUtils::from_chars(str, str + lineParts[i].size(), x);
if (result.ec != std::errc())
{
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/OpenColorIO/fileformats/FileFormatSpi1D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ CachedFileRcPtr LocalFileFormat::read(std::istream & istream,
for (int i = 0; i < components; i++)
{
float v = NAN;
const auto result = NumberUtils::from_chars(inputLUT[i], inputLUT[i] + strlen(inputLUT[i]), v);
const auto result = NumberUtils::from_chars(inputLUT[i], inputLUT[i] + 64, v);

if (result.ec != std::errc())
{
Expand Down

0 comments on commit e7c3aac

Please sign in to comment.