mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-03-12 22:02:08 +00:00
Fix -Wsizeof-pointer-memaccess warnings
argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it?
This commit is contained in:
parent
10e9ef2a52
commit
09ea2ca819
2 changed files with 2 additions and 2 deletions
|
@ -249,7 +249,7 @@ void MD5_Final( MD5_CTX *ctx, unsigned char digest[16] ) {
|
|||
|
||||
MD5_Transform( ctx->state, (unsigned int *) ctx->in );
|
||||
memcpy( digest, ctx->state, 16 );
|
||||
memset( ctx, 0, sizeof( ctx ) ); /* In case it's sensitive */
|
||||
memset( ctx, 0, sizeof( MD5_CTX ) ); /* In case it's sensitive */
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -728,7 +728,7 @@ static void ASE_KeyGEOMOBJECT( const char *token )
|
|||
else if ( !strcmp( token, "*MESH" ) )
|
||||
{
|
||||
ase.currentMesh = &ase.currentObject->mesh;
|
||||
memset( ase.currentMesh, 0, sizeof( ase.currentMesh ) );
|
||||
memset( ase.currentMesh, 0, sizeof( aseMesh_t ) );
|
||||
|
||||
ASE_ParseBracedBlock( ASE_KeyMESH );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue