aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-10-27 12:29:42 +0100
committerThomas White <taw@physics.org>2020-10-27 12:29:42 +0100
commitf198f856c1b8d21c0422b65e1ccfe3baa4cfc481 (patch)
tree0ecdf52253c729c72b7938c4380c4d46a849e0d7
parent2089e6e3c0a34430239dce596bc27db30611ac2f (diff)
Fix a possibly overrun string
-rw-r--r--libcrystfel/src/reflist-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/reflist-utils.c b/libcrystfel/src/reflist-utils.c
index 467a3007..aa4ba26b 100644
--- a/libcrystfel/src/reflist-utils.c
+++ b/libcrystfel/src/reflist-utils.c
@@ -673,7 +673,7 @@ void free_contribs(RefList *list)
static char *full_command_line(int argc, char *argv[])
{
int i;
- size_t len = 0;
+ size_t len = 1;
char *cl;
if ( argc == 0 ) return strdup("");