From 5f6b5ffcd560f056ae3af56a50d7662460652ba8 Mon Sep 17 00:00:00 2001 From: Takanori Nakane Date: Tue, 6 Jan 2015 15:35:00 +0900 Subject: Avoid libhdf5 runtime warnings when photon_energy contains %. --- libcrystfel/src/events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcrystfel/src/events.c') 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); } -- cgit v1.2.3