X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=src%2Fweb_client.c;h=c4199b5604f81153fb084a76475bdb72b2c82b85;hb=e96b2b05e17b7358a8ddbafa9c69951208323aee;hp=77396dfddac057c5f0272fffcca6748869871849;hpb=53fe93d7efe6f8256df991a5e6cd298f718dd379;p=netdata.git diff --git a/src/web_client.c b/src/web_client.c index 77396dfd..c4199b56 100644 --- a/src/web_client.c +++ b/src/web_client.c @@ -794,7 +794,7 @@ int web_client_api_request_v1_registry(struct web_client *w, char *url) char *cookie = strstr(w->response.data->buffer, " " NETDATA_REGISTRY_COOKIE_NAME "="); if(cookie) { - strncpy(person_guid, &cookie[sizeof(NETDATA_REGISTRY_COOKIE_NAME) + 2], 36); + strncpy(person_guid, &cookie[sizeof(NETDATA_REGISTRY_COOKIE_NAME) + 1], 36); person_guid[36] = '\0'; }