Introduction
Introduction Statistics Contact Development Disclaimer Help
tfix fprintf calls - simple_DEM - a simple 2D Discrete Element Method code for …
git clone git://src.adamsgaard.dk/simple_DEM
Log
Files
Refs
LICENSE
---
commit 02989d3ef68b0b3cdd2b0a6f277bfc1bdb63c85f
parent 43cadd7458e7c197e0d23677754084b11679d157
Author: Anders Damsgaard Christensen <[email protected]>
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(-)
---
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;
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.