diff options
Diffstat (limited to 'src/seq_window.c')
-rw-r--r-- | src/seq_window.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/seq_window.c b/src/seq_window.c index 3a1355f..5adf5b3 100644 --- a/src/seq_window.c +++ b/src/seq_window.c @@ -81,7 +81,7 @@ seq_win_element_t* seq_win_new_element(sender_id_t sender_id, seq_nr_t max, wind e->sender_id_ = sender_id; e->max_ = max; e->pos_ = 0; - e->window_ = malloc(sizeof(seq_nr_t)*size); + e->window_ = malloc(sizeof((*e->window_))*size); if(!e->window_) { free(e); return NULL; |