From 6f28aa507cdf41715992acdef3d4854b9ab32704 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 10 Dec 2014 16:21:13 +0100 Subject: Avoid strlen() --- libcrystfel/src/events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/events.c b/libcrystfel/src/events.c index de43cacd..03562fb5 100644 --- a/libcrystfel/src/events.c +++ b/libcrystfel/src/events.c @@ -295,7 +295,7 @@ char *get_event_string(struct event *ev) } else { ret_string = strdup("/"); - ret_string_len = strlen(ret_string); + ret_string_len = 1; } -- cgit v1.2.3