tfix fprintf calls - simple_DEM - a simple 2D Discrete Element Method code for educational purposes
(HTM) git clone git://src.adamsgaard.dk/simple_DEM
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 02989d3ef68b0b3cdd2b0a6f277bfc1bdb63c85f
(DIR) parent 43cadd7458e7c197e0d23677754084b11679d157
(HTM) Author: Anders Damsgaard Christensen <adc@geo.au.dk>
Date: Sat, 20 Aug 2016 14:10:00 -0700
fix fprintf calls
Diffstat:
M vtk_export.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/vtk_export.c b/vtk_export.c
t@@ -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;
}
t@@ -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;
}