Skip to content

Commit

Permalink
fix(FileChannel): setRotation overflow #3786
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-f committed Oct 16, 2023
1 parent 83a9289 commit cdd783a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Foundation/src/FileChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ RotateStrategy* FileChannel::createRotationStrategy(const std::string& rotation,
{
std::string::const_iterator it = rotation.begin();
std::string::const_iterator end = rotation.end();
int n = 0;
Poco::Int64 n = 0;
while (it != end && Ascii::isSpace(*it)) ++it;
while (it != end && Ascii::isDigit(*it)) { n *= 10; n += *it++ - '0'; }
while (it != end && Ascii::isSpace(*it)) ++it;
Expand Down

0 comments on commit cdd783a

Please sign in to comment.