aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-09-24 19:24:43 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-09-24 19:24:43 +0900
commit4eb1c22292c4ab843e3e3e312a2e530e18936c60 (patch)
treea68e4410865b64f59fee045d6e3efd47fcb14635
parent1008ae28bfa7265a6c1990b4452e8ba23d5d8727 (diff)
gtk: fixed memcpy size
-rw-r--r--gtk/main.c2
1 files changed, 1 insertions, 1 deletions
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);