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

BUILD : 1.7.8 (630) BUGS : N/A NOTES : Use sstrdup instead of strdup

git-svn-id: svn://svn.anope.org/anope/trunk@630 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@478 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b
2005-03-16 09:10:04 +00:00
parent 6536e8c850
commit 89e28df398
2 changed files with 12 additions and 8 deletions
+7 -7
View File
@@ -2135,11 +2135,11 @@ void updateProtectDetails(char *level_info_protect_word, char *level_info_protec
ptr = csmodeutils[i];
while(ptr.name) {
if(strcmp(ptr.name,"PROTECT")==0) {
csmodeutils[i].bsname = strdup(fant_protect_add);
csmodeutils[i].mode = strdup(protect_set_mode);
csmodeutils[i].bsname = sstrdup(fant_protect_add);
csmodeutils[i].mode = sstrdup(protect_set_mode);
} else if(strcmp(ptr.name,"DEPROTECT")==0) {
csmodeutils[i].bsname = strdup(fant_protect_del);
csmodeutils[i].mode = strdup(protect_unset_mode);
csmodeutils[i].bsname = sstrdup(fant_protect_del);
csmodeutils[i].mode = sstrdup(protect_unset_mode);
}
ptr = csmodeutils[++i];
}
@@ -2148,11 +2148,11 @@ void updateProtectDetails(char *level_info_protect_word, char *level_info_protec
l_ptr = levelinfo[i];
while(l_ptr.what != -1) {
if(l_ptr.what == CA_PROTECT) {
levelinfo[i].name = strdup(level_info_protect_word);
levelinfo[i].name = sstrdup(level_info_protect_word);
} else if(l_ptr.what == CA_PROTECTME) {
levelinfo[i].name = strdup(level_info_protectme_word);
levelinfo[i].name = sstrdup(level_info_protectme_word);
} else if(l_ptr.what == CA_AUTOPROTECT) {
levelinfo[i].name = strdup(level_protect_word);
levelinfo[i].name = sstrdup(level_protect_word);
}
l_ptr = levelinfo[++i];
}
+5 -1
View File
@@ -8,10 +8,14 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="8"
VERSION_BUILD="629"
VERSION_BUILD="630"
# $Log$
#
# BUILD : 1.7.8 (630)
# BUGS : N/A
# NOTES : Use sstrdup instead of strdup
#
# BUILD : 1.7.8 (629)
# BUGS : 313
# NOTES : Updated mydbgen and Changes.mysql to remove anope_os_cache