diff options
author | Thomas White <taw@physics.org> | 2020-10-27 12:29:42 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-10-27 12:29:42 +0100 |
commit | f198f856c1b8d21c0422b65e1ccfe3baa4cfc481 (patch) | |
tree | 0ecdf52253c729c72b7938c4380c4d46a849e0d7 | |
parent | 2089e6e3c0a34430239dce596bc27db30611ac2f (diff) |
Fix a possibly overrun string
-rw-r--r-- | libcrystfel/src/reflist-utils.c | 2 |
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(""); |