From c1e078a525e14e555137ed58a9ae12fff7b811e2 Mon Sep 17 00:00:00 2001 From: William Joye Date: Thu, 28 Mar 2019 14:38:22 -0400 Subject: fix memset issue --- tksao/fitsy++/column.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tksao/fitsy++/column.C b/tksao/fitsy++/column.C index 8bf2efc..b6052ab 100644 --- a/tksao/fitsy++/column.C +++ b/tksao/fitsy++/column.C @@ -344,7 +344,7 @@ void* FitsBinColumnArray::get(const char* heap, const char* ptr, int* cnt) size_t pp = swap(ptr,1); if (abuf_) { - memset(abuf_,pmax_,0); + memset(abuf_,0,pmax_); memcpy(abuf_,heap+pp,(*cnt)*psize_); } -- cgit v0.12