diff --git a/src/utils/inc/brainflow_array.h b/src/utils/inc/brainflow_array.h index 559145cba..5dba6e732 100644 --- a/src/utils/inc/brainflow_array.h +++ b/src/utils/inc/brainflow_array.h @@ -448,9 +448,9 @@ class BrainFlowArray } /// fill already preallocated buffer - void fill (T *ptr, int size) + void fill (T *ptr, int num) { - memcpy (origin, ptr, sizeof (T) * size); + memcpy (origin, ptr, sizeof (T) * num); } };