diff options
author | /dev/humancontroller <devhc@example.com> | 2017-04-13 11:30:00 +0000 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-04-15 17:24:16 +0200 |
commit | a989cd97673eb20dbd9a2fed5723832d5cd39512 (patch) | |
tree | 59704a9b25a8b940811b2d4023884cdc37e231f8 /src/game/g_admin.c | |
parent | 5e472f35354986a26ec9460fff2fc8b14dadf773 (diff) |
fix a couple of compiler warnings
Diffstat (limited to 'src/game/g_admin.c')
-rw-r--r-- | src/game/g_admin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c index 1becfa8..90e33c4 100644 --- a/src/game/g_admin.c +++ b/src/game/g_admin.c @@ -1828,7 +1828,7 @@ void G_admin_namelog_update( gclient_t *client, qboolean disconnect ) return; } namelog = G_Alloc( sizeof( g_admin_namelog_t ) ); - memset( namelog, 0, sizeof( namelog ) ); + memset( namelog, 0, sizeof( *namelog ) ); for( j = 0; j < MAX_ADMIN_NAMELOG_NAMES ; j++ ) namelog->name[ j ][ 0 ] = '\0'; Q_strncpyz( namelog->ip, client->pers.ip, sizeof( namelog->ip ) ); @@ -3613,7 +3613,7 @@ void G_admin_adminlog_log( gentity_t *ent, char *command, char *args, int skipar else adminlog = G_Alloc( sizeof( g_admin_adminlog_t ) ); - memset( adminlog, 0, sizeof( adminlog ) ); + memset( adminlog, 0, sizeof( *adminlog ) ); adminlog->id = count; adminlog->time = level.time - level.startTime; adminlog->success = success; |