summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules.c14
-rw-r--r--version.log6
2 files changed, 12 insertions, 8 deletions
diff --git a/src/modules.c b/src/modules.c
index 1e8de369e..3d6150a4e 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -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];
}
diff --git a/version.log b/version.log
index b5437ac9d..0fd545c2d 100644
--- a/version.log
+++ b/version.log
@@ -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