diff options
author | Thomas White <taw@physics.org> | 2024-07-16 10:27:45 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2024-07-16 10:27:56 +0200 |
commit | f65c01edf8c5a039b719885c516763726cb4300f (patch) | |
tree | 8ea3bc65523e3e287a29045cd4ac9a6170533ac5 | |
parent | 6d18480d297a35c35e02a08a18fca2fe49f8a4c8 (diff) |
GUI: Fix argument string length
Fixes: https://gitlab.desy.de/thomas.white/crystfel/-/issues/106
-rw-r--r-- | src/gui_index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui_index.c b/src/gui_index.c index 19a96afa..66dc9f79 100644 --- a/src/gui_index.c +++ b/src/gui_index.c @@ -816,7 +816,7 @@ static void add_arg_string(char **args, int pos, const char *label, len = strlen(label)+strlen(val)+4; str = malloc(len); if ( str == NULL ) return; - snprintf(str, 63, "--%s=%s", label, val); + snprintf(str, len, "--%s=%s", label, val); args[pos] = str; } |