From 817316d5f7343fc03870bd2986baebb21862e6b9 Mon Sep 17 00:00:00 2001 From: "drstein drstein@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Tue, 28 Aug 2007 04:43:10 +0000 Subject: [PATCH] BUILD : 1.7.19 (1279) BUGS : 765 NOTES : Fixed bug when truncating passwords to PASSMAX with enc_none. git-svn-id: svn://svn.anope.org/anope/trunk@1279 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@997 5417fbe8-f217-4b02-8779-1006273d7864 --- Changes | 1 + src/core/enc_none.c | 1 + version.log | 6 +++++- 3 files changed, 7 insertions(+), 1 deletion(-) 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.