diff options
author | Thomas White <taw@physics.org> | 2021-07-23 13:38:18 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-07-23 13:38:18 +0200 |
commit | dc97d48e3825cb85eaacad2d0ef88ed9436ac1f4 (patch) | |
tree | e4a79d1921bfd138b3308e9ebe251b0e6cffed54 /libcrystfel/src/reflist-utils.c | |
parent | a62320ae32632ce6e3a5cfc5ccecf7fac1eb04f7 (diff) |
Add field widths to all sscanf("%s")
Diffstat (limited to 'libcrystfel/src/reflist-utils.c')
-rw-r--r-- | libcrystfel/src/reflist-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/reflist-utils.c b/libcrystfel/src/reflist-utils.c index 52cf5e61..21662edb 100644 --- a/libcrystfel/src/reflist-utils.c +++ b/libcrystfel/src/reflist-utils.c @@ -351,7 +351,7 @@ static RefList *read_reflections_from_file(FILE *fh, char **sym) int cts; int r; - r = sscanf(line, "%i %i %i %f %s %f %i", + r = sscanf(line, "%i %i %i %f %64s %f %i", &h, &k, &l, &intensity, phs, &sigma, &cts); if ( r != 7 ) { @@ -380,7 +380,7 @@ static RefList *read_reflections_from_file(FILE *fh, char **sym) int cts; int r; - r = sscanf(line, "%i %i %i %f %s %f %i %f %f", + r = sscanf(line, "%i %i %i %f %64s %f %i %f %f", &h, &k, &l, &intensity, phs, &sigma, &cts, &fs, &ss); |