diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2017-09-24 19:24:43 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2017-09-24 19:24:43 +0900 |
commit | 4eb1c22292c4ab843e3e3e312a2e530e18936c60 (patch) | |
tree | a68e4410865b64f59fee045d6e3efd47fcb14635 | |
parent | 1008ae28bfa7265a6c1990b4452e8ba23d5d8727 (diff) |
gtk: fixed memcpy size
-rw-r--r-- | gtk/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |