You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if ((prefixPos = this->output.find("%i")) != std::string::npos) {
WriterFile.cpp from line 82 to 133 looks within this->output for placeholders and sets prefixPos and suffixPos accordingly.
However, later on in the file the prefixPos and suffixPos variables are used to index into fileNameMask. This only works if this->output is the same as fileNameMask, i.e. if there is no directory part in the output parameter. If there is a directory part, it doesn't work - it either crashes or fails silently to create and write to the output file.
The fix is to replace this->output with fileNameMask from lines 82 to 133 of WriterFile.cpp.
The text was updated successfully, but these errors were encountered:
OpenLogReplicator/src/writer/WriterFile.cpp
Line 82 in cc363de
WriterFile.cpp from line 82 to 133 looks within
this->output
for placeholders and setsprefixPos
andsuffixPos
accordingly.However, later on in the file the
prefixPos
andsuffixPos
variables are used to index intofileNameMask
. This only works ifthis->output
is the same asfileNameMask
, i.e. if there is no directory part in theoutput
parameter. If there is a directory part, it doesn't work - it either crashes or fails silently to create and write to the output file.The fix is to replace
this->output
withfileNameMask
from lines 82 to 133 of WriterFile.cpp.The text was updated successfully, but these errors were encountered: