diff options
Diffstat (limited to 'src/rest.c')
-rw-r--r-- | src/rest.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2127,7 +2127,9 @@ int og_json_parse_create_image(json_t *element, sizeof(params->image.name)); params->flags |= OG_REST_PARAM_NAME; } else if (!strcmp(key, "repository")) { - err = og_json_parse_string(value, ¶ms->repository); + err = og_json_parse_string_copy(value, + (char *)¶ms->image.repo_ip, + sizeof(params->image.repo_ip)); params->flags |= OG_REST_PARAM_REPO; } else if (!strcmp(key, "clients")) { err = og_json_parse_clients(value, params); |