summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes1
-rw-r--r--src/core/enc_none.c1
-rw-r--r--version.log6
3 files changed, 7 insertions, 1 deletions
diff --git a/Changes b/Changes
index 0c1c45e0e..97597f32a 100644
--- a/Changes
+++ b/Changes
@@ -21,6 +21,7 @@ Anope Version S V N
08/27 F Added missed help for NS CONFIRM. [#759]
08/27 F Fixed typo in en_us.l [#767]
08/27 F inspircd11 protocol now uses svshold [#683]
+08/28 F Fixed bug when truncating passwords to PASSMAX with enc_none [#765]
Anope Version 1.7.19
--------------------
diff --git a/src/core/enc_none.c b/src/core/enc_none.c
index ca37ac4b3..59c78c9dc 100644
--- a/src/core/enc_none.c
+++ b/src/core/enc_none.c
@@ -43,6 +43,7 @@ int plain_encrypt(const char *src,int len,char *dest,int size) {
if(size>=len) {
memset(dest,0,size);
strncpy(dest,src,len);
+ dest[len] = '\0';
return 0;
}
return -1;
diff --git a/version.log b/version.log
index e8dacda3d..21bb25fbe 100644
--- a/version.log
+++ b/version.log
@@ -9,10 +9,14 @@ VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="19"
VERSION_EXTRA="-svn"
-VERSION_BUILD="1278"
+VERSION_BUILD="1279"
# $Log$
#
+# BUILD : 1.7.19 (1279)
+# BUGS : 765
+# NOTES : Fixed bug when truncating passwords to PASSMAX with enc_none.
+#
# BUILD : 1.7.19 (1278)
# BUGS : 683, 767
# NOTES : [1] typo in en_us.l [2] Provided by katsklaws patch: inspircd11 protocol now uses svshold.