Skip to content

Commit

Permalink
Fix the other snprintf in rlm_sqlcounter. Closes #498
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Jan 10, 2014
1 parent 96a2f86 commit f81faed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/rlm_sqlcounter/rlm_sqlcounter.c
Expand Up @@ -530,7 +530,7 @@ static rlm_rcode_t mod_authorize(UNUSED void *instance, UNUSED REQUEST *request)
return rcode;
}

len = snprintf(query, sizeof(query), "%%{%s:%s}", inst->sqlmod_inst, query);
len = snprintf(query, sizeof(query), "%%{%s:%s}", inst->sqlmod_inst, inst->query);
if (len >= sizeof(query) - 1) {
REDEBUG("Insufficient query buffer space");

Expand Down

0 comments on commit f81faed

Please sign in to comment.