if (suggested != NULL)
{
- memcpy (suggested, requested, sizeof (suggested));
+ memcpy (suggested, requested, sizeof (*suggested));
if (requested->width < 1)
suggested->width = 1;
if (suggested != NULL)
{
- memcpy(suggested, requested, sizeof(suggested));
+ memcpy(suggested, requested, sizeof(*suggested));
if (requested->width < 1)
suggested->width = 1;
{
if (ioctl_param != prev_value && suggested != NULL)
{
- memcpy(suggested, requested, sizeof(suggested));
+ memcpy(suggested, requested, sizeof(*suggested));
if (ioctl_param == AFMT_S16_NE)
suggested->width = 2;
{
if (ioctl_param != requested->channels && suggested != NULL)
{
- memcpy(suggested, requested, sizeof(suggested));
+ memcpy(suggested, requested, sizeof(*suggested));
suggested->channels = ioctl_param;
}
{
if ((unsigned int)ioctl_param != requested->speed && suggested != NULL)
{
- memcpy(suggested, requested, sizeof(suggested));
+ memcpy(suggested, requested, sizeof(*suggested));
suggested->speed = ioctl_param;
}