1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 05:13:12 +02:00

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
This commit is contained in:
cyberbotx
2009-10-20 04:34:03 +00:00
parent 0d3ec454de
commit 0b3824c86a
21 changed files with 125 additions and 139 deletions
+2 -2
View File
@@ -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)
{
+4 -4
View File
@@ -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;
}