simple_DEM

A simple 2D Discrete Element Method code for educational purposes
git clone git://src.adamsgaard.dk/simple_DEM
Log | Files | Refs

commit 02989d3ef68b0b3cdd2b0a6f277bfc1bdb63c85f
parent 43cadd7458e7c197e0d23677754084b11679d157
Author: Anders Damsgaard Christensen <adc@geo.au.dk>
Date:   Sat, 20 Aug 2016 14:10:00 -0700

fix fprintf calls

Diffstat:
Mvtk_export.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vtk_export.c b/vtk_export.c @@ -12,7 +12,7 @@ int vtk_export_grains(grain* g, int numfile) if ((fout = fopen(filename, "wt")) == NULL) { fprintf(stderr, "vtk_export error, cannot open "); - fprintf(stderr, filename); + fprintf(stderr, "%s", filename); fprintf(stderr, "!\n"); return 1; } @@ -67,7 +67,7 @@ int vtk_export_forces(grain* g, int numfile) if ((fout = fopen(filename, "wt")) == NULL) { fprintf(stderr,"vtk_export error, cannot open "); - fprintf(stderr, filename); + fprintf(stderr, "%s", filename); fprintf(stderr, "!\n"); return 1; }