[SCM] Samba Shared Repository - branch master updated

Björn Jacke bjacke at samba.org
Thu Aug 4 09:51:02 MDT 2011


The branch, master has been updated
       via  d3b4d75 s3/swat: use strlcat instead of strncat to fix build on old Linux distros
      from  68e7b93 s4-librpc: Fix double free.

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit d3b4d75364210e2d2a4a1cd806f28b0021f22909
Author: Björn Jacke <bj at sernet.de>
Date:   Thu Aug 4 16:25:08 2011 +0200

    s3/swat: use strlcat instead of strncat to fix build on old Linux distros
    
    SLES 9's glibc for example had weird macros where the use of strncat resulted
    in the use of strcat which we don't allow.
    
    Signed-off-by: Stefan Metzmacher <metze at samba.org>
    
    Autobuild-User: Björn Jacke <bj at sernet.de>
    Autobuild-Date: Thu Aug  4 17:50:24 CEST 2011 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 source3/web/swat.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/web/swat.c b/source3/web/swat.c
index f955466..69d9fec 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -175,7 +175,7 @@ void get_xsrf_token(const char *username, const char *pass,
 		char tmp[3];
 
 		snprintf(tmp, sizeof(tmp), "%02x", token[i]);
-		strncat(token_str, tmp, sizeof(tmp));
+		strlcat(token_str, tmp, sizeof(tmp));
 	}
 }
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list