From a04ff45780c1138594f3fb7e5592797681e9071e Mon Sep 17 00:00:00 2001 From: Janos Kovacs Date: Tue, 28 Aug 2012 02:26:20 +0300 Subject: [PATCH] test: fixes in avsys-audio-test --- audiotest/avsys-audio-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audiotest/avsys-audio-test.c b/audiotest/avsys-audio-test.c index c1ecdd9..0f7dd98 100644 --- a/audiotest/avsys-audio-test.c +++ b/audiotest/avsys-audio-test.c @@ -125,7 +125,7 @@ int _playback(int mode, int routing, int voltyp, char *filename) if (!filename) return -1; - memset(¶m, sizeof(avsys_audio_param_t), '\0'); + memset(¶m, '\0', sizeof(avsys_audio_param_t)); if (__make_param(OP_PLAYBACK, mode, routing, voltyp, ¶m)) { printf("Can not make audio parameter\n"); @@ -184,7 +184,7 @@ int _capture(int mode, int routing, int voltyp, char *filename) printf("[%s] real filename :%s\n", __func__, namebuffer); - memset(¶m, sizeof(avsys_audio_param_t), '\0'); + memset(¶m, '\0', sizeof(avsys_audio_param_t)); if (__make_param(OP_CAPTURE, mode, routing, voltyp, ¶m)) { printf("Can not make audio parameter\n"); -- 2.7.4