From bb40336eb8a2acc9f2e3d2e9059b7d90afe5c0c4 Mon Sep 17 00:00:00 2001 From: Samo Penic <samo.penic@fe.uni-lj.si> Date: Mon, 29 Feb 2016 09:14:58 +0000 Subject: [PATCH] Some leaks still present in xml parsing library. --- src/snapshot.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/snapshot.c b/src/snapshot.c index e4681b0..12bb19a 100644 --- a/src/snapshot.c +++ b/src/snapshot.c @@ -82,7 +82,7 @@ ts_uint i; ts_sprintf(data,"<tria>"); for(i=0; i<tlist->n;i++){ - ts_sprintf(data,"%u %u %u",tlist->tria[i]->vertex[0]->idx, tlist->tria[i]->vertex[1]->idx, tlist->tria[i]->vertex[2]->idx); + ts_sprintf(data,"%u %u %u ",tlist->tria[i]->vertex[0]->idx, tlist->tria[i]->vertex[1]->idx, tlist->tria[i]->vertex[2]->idx); } ts_sprintf(data,"</tria>"); return TS_SUCCESS; @@ -92,7 +92,7 @@ ts_uint i; ts_sprintf(data,"<trianeigh>\n"); for(i=0; i<tlist->n;i++){ - ts_sprintf(data,"%u %u %u",tlist->tria[i]->neigh[0]->idx, tlist->tria[i]->neigh[1]->idx, tlist->tria[i]->neigh[2]->idx); + ts_sprintf(data,"%u %u %u ",tlist->tria[i]->neigh[0]->idx, tlist->tria[i]->neigh[1]->idx, tlist->tria[i]->neigh[2]->idx); } ts_sprintf(data,"</trianeigh>\n"); return TS_SUCCESS; -- Gitblit v1.9.3