aboutsummaryrefslogtreecommitdiff
path: root/src/partialator.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-01-29 17:15:06 +0100
committerThomas White <taw@physics.org>2019-01-29 17:21:06 +0100
commit1fdbafbb687c32dc167a572a3048e32099720fde (patch)
tree7c2f71637cad9d11fce81cff35e94b24c0b2654c /src/partialator.c
parent83b4dbe4a0146da76fbb69fde213176d44e1a2ae (diff)
Fix some compiler warnings about string handling
Diffstat (limited to 'src/partialator.c')
-rw-r--r--src/partialator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/partialator.c b/src/partialator.c
index fd610ddb..50518b99 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -622,10 +622,10 @@ static void write_to_pgraph(FILE *fh, RefList *list, RefList *full, Crystal *cr,
double G = crystal_get_osf(cr);
double B = crystal_get_Bfac(cr);
UnitCell *cell = crystal_get_cell(cr);
- char ins[5];
+ char ins[16];
if ( inum >= 0 ) {
- snprintf(ins, 4, "%i", inum);
+ snprintf(ins, 12, "%i", inum);
} else {
ins[0] = 'F';
ins[1] = '\0';