From 4eb1c22292c4ab843e3e3e312a2e530e18936c60 Mon Sep 17 00:00:00 2001 From: Takamichi Horikawa Date: Sun, 24 Sep 2017 19:24:43 +0900 Subject: gtk: fixed memcpy size --- gtk/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk') diff --git a/gtk/main.c b/gtk/main.c index 8a64a38..92696da 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -300,7 +300,7 @@ static gboolean render_cb(GtkGLArea *glarea, GdkGLContext *glctx, gpointer ptr) (void)ptr; if (!atomic_flag_test_and_set_explicit( &g.at_fftdata_flag, memory_order_acquire)) { - memcpy(&g.fftdata.fdata, &g.at_fftdata, sizeof(g.fftdata)); + memcpy(&g.fftdata.fdata, &g.at_fftdata, sizeof(g.fftdata.fdata)); atomic_flag_clear_explicit(&g.at_fftdata_flag, memory_order_release); } fmdsp_pacc_render(g.fp); -- cgit v1.2.3