MCPcopy Create free account
hub / github.com/OSGeo/gdal / CPLStaticBufferTooSmall

Function CPLStaticBufferTooSmall

port/cpl_path.cpp:43–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41constexpr int CPL_PATH_BUF_COUNT = 10;
42
43static const char *CPLStaticBufferTooSmall(char *pszStaticResult)
44{
45 CPLError(CE_Failure, CPLE_AppDefined, "Destination buffer too small");
46 if (pszStaticResult == nullptr)
47 return "";
48 strcpy(pszStaticResult, "");
49 return pszStaticResult;
50}
51
52/************************************************************************/
53/* CPLGetStaticResult() */

Callers 1

CPLPathReturnTLSStringFunction · 0.85

Calls 1

CPLErrorFunction · 0.85

Tested by

no test coverage detected