summaryrefslogtreecommitdiff
path: root/src/modules/hs_request.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-20 04:34:03 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-20 04:34:03 +0000
commit0b3824c86a99354d06339b95e40515de762d65f7 (patch)
tree133edb1fb478a97674cb63e1f89a4762053d24e2 /src/modules/hs_request.c
parent0d3ec454de486da5cbc292f7e694ee8ab7e4fae0 (diff)
Apply some changes based on possible "flaws" found with flawfinder.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2574 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules/hs_request.c')
-rw-r--r--src/modules/hs_request.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/hs_request.c b/src/modules/hs_request.c
index 30949d9e7..b982375db 100644
--- a/src/modules/hs_request.c
+++ b/src/modules/hs_request.c
@@ -826,9 +826,9 @@ void req_send_memos(User *u, char *vIdent, char *vHost)
return;
if (vIdent)
- sprintf(host, "%s@%s", vIdent, vHost);
+ snprintf(host, sizeof(host), "%s@%s", vIdent, vHost);
else
- sprintf(host, "%s", vHost);
+ snprintf(host, sizeof(host), "%s", vHost);
if (HSRequestMemoOper == 1)
{