Skip to content

Commit

Permalink
Fix bad variable reference in file logger
Browse files Browse the repository at this point in the history
  • Loading branch information
CendioOssman committed Jan 25, 2024
1 parent 6050b15 commit 238028d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/rfb/Logger_file.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ void Logger_File::setFilename(const char* filename)
{
closeFile();
m_filename[0] = '\0';
if (strlen(filename) >= sizeof(filename))
if (strlen(filename) >= sizeof(m_filename))
return;
strcpy(m_filename, filename);
}
Expand Down

0 comments on commit 238028d

Please sign in to comment.