From 79a286c45bbd2c75cd026e77d00a72e8bc22c01d Mon Sep 17 00:00:00 2001 From: Marcus Sundberg Date: Mon, 24 Jan 2000 00:09:59 +0000 Subject: [PATCH] A '&' before an array variable is at best ignored, at worst it could do weird stuff. --- common/snd_dma.c | 2 +- qw_server/sv_ccmds.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/snd_dma.c b/common/snd_dma.c index 47aedba..bb1b63d 100644 --- a/common/snd_dma.c +++ b/common/snd_dma.c @@ -557,7 +557,7 @@ void S_StopAllSounds(qboolean clear) if (channels[i].sfx) channels[i].sfx = NULL; - Q_memset(&channels, 0, MAX_CHANNELS * sizeof(channel_t)); + Q_memset(channels, 0, MAX_CHANNELS * sizeof(channel_t)); if (clear) S_ClearBuffer (); diff --git a/qw_server/sv_ccmds.c b/qw_server/sv_ccmds.c index 956d5dd..7142660 100644 --- a/qw_server/sv_ccmds.c +++ b/qw_server/sv_ccmds.c @@ -52,7 +52,7 @@ void SV_SetMaster_f (void) char data[2]; int i; - memset (&master_adr, 0, sizeof(master_adr)); + memset (master_adr, 0, sizeof(master_adr)); for (i=1 ; i