Fixed bug when writing predicates in view file

This commit is contained in:
Celine Mercier
2016-08-11 17:30:09 +02:00
parent d3c58780a0
commit 5b7917bb5a

View File

@ -1777,7 +1777,7 @@ int obi_save_and_close_view(Obiview_p view)
else else
{ {
// TODO check size and grow file if needed // TODO check size and grow file if needed
strcpy((view->infos)->comments, predicates); strcat((view->infos)->comments, predicates);
free(predicates); free(predicates);
} }
if (obi_save_view(view) < 0) if (obi_save_view(view) < 0)