aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/events.c
diff options
context:
space:
mode:
authorTakanori Nakane <nakane.t@gmail.com>2015-01-06 15:35:00 +0900
committerThomas White <taw@physics.org>2015-02-12 12:42:17 +0100
commit5f6b5ffcd560f056ae3af56a50d7662460652ba8 (patch)
tree19038292e75b27c8f7f7be17269776dbf2eeb936 /libcrystfel/src/events.c
parente22c8ae67ab6af53d21984ff3c602529f2770526 (diff)
Avoid libhdf5 runtime warnings when photon_energy contains %.
Diffstat (limited to 'libcrystfel/src/events.c')
-rw-r--r--libcrystfel/src/events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/events.c b/libcrystfel/src/events.c
index 29cb9495..5de60b66 100644
--- a/libcrystfel/src/events.c
+++ b/libcrystfel/src/events.c
@@ -356,7 +356,7 @@ char *get_event_string(struct event *ev)
strncpy(&ret_string[ret_string_len],"/", 1);
strncpy(&ret_string[ret_string_len+1], num_buf,
- strlen(num_buf));
+ strlen(num_buf));
ret_string_len += 1+strlen(num_buf);
}