Index: /branches/eam_branches/ipp-20150625/Ohana/src/libfits/table/F_read_T.c
===================================================================
--- /branches/eam_branches/ipp-20150625/Ohana/src/libfits/table/F_read_T.c	(revision 38691)
+++ /branches/eam_branches/ipp-20150625/Ohana/src/libfits/table/F_read_T.c	(revision 38692)
@@ -79,5 +79,12 @@
   Nskip = start * Nx;
   Nbytes = Nrows * Nx;
-  ALLOCATE (table[0].buffer, char, MAX (Nbytes, 1));
+
+  if (table[0].buffer) {
+    if (table[0].datasize < Nbytes) {
+      REALLOCATE (table[0].buffer, char, MAX (Nbytes, 1));
+    }
+  } else {
+    ALLOCATE (table[0].buffer, char, MAX (Nbytes, 1));
+  }
 
   fseeko (f, Nskip, SEEK_CUR);
