Jelajahi Sumber

HPCC-8026 Fix linux compile error passing StringBuffer to ... argument

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday 12 tahun lalu
induk
melakukan
092d26e20a
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      esp/services/ws_topology/ws_topologyService.cpp

+ 1 - 1
esp/services/ws_topology/ws_topologyService.cpp

@@ -507,7 +507,7 @@ bool CWsTopologyEx::findTimestampAndLT(StringBuffer logname, IFile* rFile, ReadL
     {
         bytesRead = rIO->read(fileSize - readSize, readSize, dataBuffer.clear().reserve(readSize));
         if (bytesRead != readSize)
-            throw MakeStringException(ECLWATCH_CANNOT_READ_FILE, "Failed to read file %s.", logname);
+            throw MakeStringException(ECLWATCH_CANNOT_READ_FILE, "Failed to read file %s.", logname.str());
         pTr = (char*) dataBuffer.str();
     }