]> source.dussan.org Git - tigervnc.git/commitdiff
Fix bad variable reference in file logger
authorPierre Ossman <ossman@cendio.se>
Thu, 25 Jan 2024 15:18:43 +0000 (16:18 +0100)
committerPierre Ossman <ossman@cendio.se>
Thu, 25 Jan 2024 15:19:16 +0000 (16:19 +0100)
common/rfb/Logger_file.cxx

index 9859eb0415e76bc2ad9c5f79ed35a682e1379e5f..099a35011772dff2d3164e3ed01cbbcc148254c9 100644 (file)
@@ -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);
 }