]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Increase buffer for OAuth access token. Another fix for #3897.
authortonypelle <tonypelle@gmail.com>
Fri, 19 Aug 2022 17:18:56 +0000 (10:18 -0700)
committerMatthias Runge <mrunge@matthias-runge.de>
Sat, 20 Aug 2022 09:43:53 +0000 (11:43 +0200)
src/utils/oauth/oauth.c

index 9d957205810ef345e7dea86f22b55d30020100e3..77104f068931dbc0f3a392aee5fc9929e83adc67 100644 (file)
@@ -331,7 +331,7 @@ static int new_token(oauth_t *auth) /* {{{ */
   char assertion[1024];
   char post_data[1024];
   memory_t data;
-  char access_token[256];
+  char access_token[GOOGLE_OAUTH_ACCESS_TOKEN_SIZE];
   cdtime_t expires_in;
   cdtime_t now;
   char curl_errbuf[CURL_ERROR_SIZE];