aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-12-10 16:21:13 +0100
committerThomas White <taw@physics.org>2014-12-10 16:21:13 +0100
commit6f28aa507cdf41715992acdef3d4854b9ab32704 (patch)
tree29c24425f55cbc2f9ae8d47f3d6b5c7f1c4808f9 /libcrystfel
parentb6414d926523226ff45261438e01de3745ac0fcc (diff)
Avoid strlen()
Diffstat (limited to 'libcrystfel')
-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 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;
}