-Werror,-Wstrncat-size (Clang towards 3.2)
Change-Id: Ifdf0c47b38621835d6c6fa3a180d78f3f14edabf
This commit is contained in:
@@ -593,13 +593,13 @@ static int ReportCrash( int Signal )
|
|||||||
int fdxml, fdstk, fdchksum;
|
int fdxml, fdstk, fdchksum;
|
||||||
|
|
||||||
strncpy( szXMLTempNameBuffer, P_tmpdir, sizeof(szXMLTempNameBuffer) );
|
strncpy( szXMLTempNameBuffer, P_tmpdir, sizeof(szXMLTempNameBuffer) );
|
||||||
strncat( szXMLTempNameBuffer, "/crxmlXXXXXX", sizeof(szXMLTempNameBuffer) );
|
strncat( szXMLTempNameBuffer, "/crxmlXXXXXX", sizeof(szXMLTempNameBuffer) - strlen(szXMLTempNameBuffer) - 1 );
|
||||||
|
|
||||||
strncpy( szStackTempNameBuffer, P_tmpdir, sizeof(szStackTempNameBuffer) );
|
strncpy( szStackTempNameBuffer, P_tmpdir, sizeof(szStackTempNameBuffer) );
|
||||||
strncat( szStackTempNameBuffer, "/crstkXXXXXX", sizeof(szStackTempNameBuffer) );
|
strncat( szStackTempNameBuffer, "/crstkXXXXXX", sizeof(szStackTempNameBuffer) - strlen(szStackTempNameBuffer) - 1 );
|
||||||
|
|
||||||
strncpy( szChecksumTempNameBuffer, P_tmpdir, sizeof(szChecksumTempNameBuffer) );
|
strncpy( szChecksumTempNameBuffer, P_tmpdir, sizeof(szChecksumTempNameBuffer) );
|
||||||
strncat( szChecksumTempNameBuffer, "/crchkXXXXXX", sizeof(szChecksumTempNameBuffer) );
|
strncat( szChecksumTempNameBuffer, "/crchkXXXXXX", sizeof(szChecksumTempNameBuffer) - strlen(szChecksumTempNameBuffer) - 1 );
|
||||||
|
|
||||||
fdxml = mkstemp(szXMLTempNameBuffer);
|
fdxml = mkstemp(szXMLTempNameBuffer);
|
||||||
fdstk = mkstemp(szStackTempNameBuffer);
|
fdstk = mkstemp(szStackTempNameBuffer);
|
||||||
|
Reference in New Issue
Block a user