Fixed a critical bug where the elements names were not stored correctly

This commit is contained in:
celinemercier
2015-08-03 16:11:55 +02:00
parent ab44e32afb
commit 1fe2e36d5d
2 changed files with 3 additions and 7 deletions

View File

@ -24,6 +24,8 @@
#include "obilittlebigman.h"
#include "obidmscolumndir.h"
#define ELEMENTS_NAMES_MAX (2048)
typedef int32_t obiversion_t; /**< Used to store the column version number
*/
@ -43,7 +45,7 @@ typedef struct OBIDMS_column_header {
size_t line_count; /**< number of lines of data */
size_t lines_used; /**< number of lines of data used */
size_t nb_elements_per_line; /**< number of elements per line (default : 1) */
char* elements_names; /**< names of the line elements (default : "["column_name"]") */
char elements_names[ELEMENTS_NAMES_MAX+1]; /**< names of the line elements (default : "["column_name"]") */
OBIType_t data_type; /**< type of the data */
time_t creation_date; /**< date of creation of the file */
obiversion_t version; /**< version of the OBIColumn */