From: Eric Gillespie Date: Sun, 10 Apr 2016 06:17:35 +0000 (+0000) Subject: oops, pass int to m_getfld not size_t X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/1d0ed63faef8861a5a1026813aa8907828671e40?ds=sidebyside;hp=--cc oops, pass int to m_getfld not size_t --- 1d0ed63faef8861a5a1026813aa8907828671e40 diff --git a/sbr/oauth.c b/sbr/oauth.c index 70de7dbe..0d6d76d4 100644 --- a/sbr/oauth.c +++ b/sbr/oauth.c @@ -786,7 +786,7 @@ load_creds(struct user_creds **result, FILE *fp, mh_oauth_ctx *ctx) user_creds->creds = mh_xmalloc(user_creds->alloc * sizeof *user_creds->creds); for (;;) { - size_t size = sizeof value_buf; + int size = sizeof value_buf; switch (state = m_getfld(&getfld_ctx, name, value_buf, &size, fp)) { case FLD: case FLDPLUS: {