summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/hs_request.c4
-rw-r--r--src/modules/os_ignore_db.c8
2 files changed, 6 insertions, 6 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)
{
diff --git a/src/modules/os_ignore_db.c b/src/modules/os_ignore_db.c
index b393e5cd1..d5487b360 100644
--- a/src/modules/os_ignore_db.c
+++ b/src/modules/os_ignore_db.c
@@ -478,12 +478,12 @@ void fill_db_ptr(DBFile *dbptr, int version, int core_version,
dbptr->db_version = version;
dbptr->core_db_version = core_version;
if (!service)
- strcpy(dbptr->service, service);
+ strlcpy(dbptr->service, service, sizeof(dbptr->service));
else
- strcpy(dbptr->service, "");
+ strlcpy(dbptr->service, "", sizeof(dbptr->service));
- strcpy(dbptr->filename, filename);
- snprintf(dbptr->temp_name, 261, "%s.temp", filename);
+ strlcpy(dbptr->filename, filename, sizeof(dbptr->filename));
+ snprintf(dbptr->temp_name, sizeof(dbptr->temp_name), "%s.temp", filename);
return;
}