X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils%2Foauth%2Foauth.c;h=4b31056dc30e5730f32ff573b2d2998526b75658;hb=6f2b3abac8ab809d6b0aea58a873bd00c2be4dcc;hp=671de84da7657f131fb463537aa8967910ce6876;hpb=839dbf244f96d08c02d18e1fc64264b1740e6fc6;p=collectd.git diff --git a/src/utils/oauth/oauth.c b/src/utils/oauth/oauth.c index 671de84d..4b31056d 100644 --- a/src/utils/oauth/oauth.c +++ b/src/utils/oauth/oauth.c @@ -280,7 +280,7 @@ static int get_assertion(oauth_t *auth, char *buffer, status = snprintf(buffer, buffer_size, "%s.%s.%s", header, claim, signature); if (status < 1) return -1; - else if (status >= buffer_size) + else if ((size_t)status >= buffer_size) return ENOMEM; return 0;