diff options
author | David Robillard <d@drobilla.net> | 2022-05-30 15:06:51 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-05-30 15:41:43 -0400 |
commit | b6d6f44708c55b529250e6cb5a61466ce13874b9 (patch) | |
tree | 015e1d02bb3f0a09c471c9d351418fdb4d5e8d6c /src/portaudio.c | |
parent | 997945c9f4850f1833543465e91d372ef01a338c (diff) | |
download | jalv-b6d6f44708c55b529250e6cb5a61466ce13874b9.tar.gz jalv-b6d6f44708c55b529250e6cb5a61466ce13874b9.tar.bz2 jalv-b6d6f44708c55b529250e6cb5a61466ce13874b9.zip |
Remove use of VLAs
Diffstat (limited to 'src/portaudio.c')
-rw-r--r-- | src/portaudio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portaudio.c b/src/portaudio.c index 6b43dc7..8079e92 100644 --- a/src/portaudio.c +++ b/src/portaudio.c @@ -98,7 +98,7 @@ pa_process_cb(const void* inputs, ev->index = p; ev->protocol = 0; ev->size = sizeof(float); - *(float*)ev->body = port->control; + *(float*)(ev + 1) = port->control; if (zix_ring_write(jalv->plugin_events, buf, sizeof(buf)) < sizeof(buf)) { fprintf(stderr, "Plugin => UI buffer overflow!\n"); } |