summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-12-03 01:42:01 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-12-03 01:42:01 +0200
commitfe6274e9e0c0cf101b7afff38744dfa791cdb098 (patch)
tree41a8f5f5546ee73d36acf07ffd4333162ab99a3d
parentcd27175a4ab621b84cf099fed1369d1d74b71f4d (diff)
pcm: should use sizeof(round)
-rw-r--r--src/pcm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm.c b/src/pcm.c
index 284db19..6051697 100644
--- a/src/pcm.c
+++ b/src/pcm.c
@@ -1156,7 +1156,7 @@ snd_pcm_hw_params_set_periods_near(snd_pcm_t *pcm, snd_pcm_hw_params_t *params,
WARNX("%u", *val);
unsigned int round = params->par.appbufsz / *val;
assert(sizeof(params->par.round) == sizeof(round));
- const int ret = update(pcm, &params->par, &params->par.round, &round, sizeof(*val));
+ const int ret = update(pcm, &params->par, &params->par.round, &round, sizeof(round));
*val = params->par.appbufsz / params->par.round;
return ret;
}