diff options
author | Thomas White <taw@physics.org> | 2019-01-29 17:15:06 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-01-29 17:21:06 +0100 |
commit | 1fdbafbb687c32dc167a572a3048e32099720fde (patch) | |
tree | 7c2f71637cad9d11fce81cff35e94b24c0b2654c /src/post-refinement.c | |
parent | 83b4dbe4a0146da76fbb69fde213176d44e1a2ae (diff) |
Fix some compiler warnings about string handling
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r-- | src/post-refinement.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c index 44fe6b45..8669a8f5 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -648,7 +648,7 @@ static void write_grid(Crystal *cr, const RefList *full, const char *name) { FILE *fh; - char fn[64]; + char fn[16]; char ins[5]; gsl_multimin_fminimizer *min; struct rf_priv priv; @@ -667,7 +667,7 @@ static void write_grid(Crystal *cr, const RefList *full, assert(idx2 != 99); if ( cycle >= 0 ) { - snprintf(ins, 4, "%i", cycle); + snprintf(ins, 12, "%i", cycle); } else { ins[0] = 'F'; ins[1] = '\0'; |