summaryrefslogtreecommitdiffstats
path: root/src/modules/rlm_counter
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/rlm_counter')
-rw-r--r--src/modules/rlm_counter/rlm_counter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/rlm_counter/rlm_counter.c b/src/modules/rlm_counter/rlm_counter.c
index ff46aef..9e3c753 100644
--- a/src/modules/rlm_counter/rlm_counter.c
+++ b/src/modules/rlm_counter/rlm_counter.c
@@ -839,7 +839,7 @@ static rlm_rcode_t CC_HINT(nonnull) mod_authorize(void *instance, REQUEST *reque
/*
* User is denied access, send back a reply message
*/
- sprintf(msg, "Your maximum %s usage time has been reached", inst->reset);
+ snprintf(msg, sizeof(msg), "Your maximum %s usage time has been reached", inst->reset);
pair_make_reply("Reply-Message", msg, T_OP_EQ);
REDEBUG("Maximum %s usage time reached", inst->reset);