diff --git a/Sources/Plasma/PubUtilLib/plStatGather/plProfileManagerFull.cpp b/Sources/Plasma/PubUtilLib/plStatGather/plProfileManagerFull.cpp index d592c588..f2f26392 100644 --- a/Sources/Plasma/PubUtilLib/plStatGather/plProfileManagerFull.cpp +++ b/Sources/Plasma/PubUtilLib/plStatGather/plProfileManagerFull.cpp @@ -460,7 +460,7 @@ const wchar* plProfileManagerFull::GetProfilePath() void plProfileManagerFull::ILogStats() { wchar statFilename[256]; - swprintf(statFilename, L"%s%s.csv", GetProfilePath(), fLogAgeName.c_str()); + swprintf(statFilename, 256, L"%s%s.csv", GetProfilePath(), fLogAgeName.c_str()); bool exists = plFileUtils::FileExists(statFilename);