diff --git a/libao2/ao_oss.c b/libao2/ao_oss.c index 25545f9b75..236a054e9f 100644 --- a/libao2/ao_oss.c +++ b/libao2/ao_oss.c @@ -46,7 +46,7 @@ static int control(int cmd,void *arg){ dsp=(char*)arg; return CONTROL_OK; case AOCONTROL_GET_DEVICE: - (char*)arg=dsp; + *(char**)arg=dsp; return CONTROL_OK; case AOCONTROL_QUERY_FORMAT: return CONTROL_TRUE;