[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-2677-ge7c7246

Jeremy Allison jra at samba.org
Wed Jul 2 23:32:39 GMT 2008


The branch, v3-2-test has been updated
       via  e7c7246300bf060a93c2685ce9496b52f91d0a96 (commit)
      from  d47ab1d07ba043f42a24a17f7644bf672c12791a (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit e7c7246300bf060a93c2685ce9496b52f91d0a96
Author: Jeremy Allison <jra at samba.org>
Date:   Wed Jul 2 16:32:02 2008 -0700

    Remove worrying warning message when safe_strcpy tries to copy a pseaudo interface
    name that's too long. Reported by James Kosin <JKosin at intcomgrp.com>.
    Jeremy.

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

Summary of changes:
 source/lib/interface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/lib/interface.c b/source/lib/interface.c
index 9627bf6..eb0af9e 100644
--- a/source/lib/interface.c
+++ b/source/lib/interface.c
@@ -469,7 +469,7 @@ static void interpret_interface(char *token)
 		token));
 
 	ZERO_STRUCT(ifs);
-	safe_strcpy(ifs.name, token, sizeof(ifs.name)-1);
+	(void)strlcpy(ifs.name, token, sizeof(ifs.name));
 	ifs.flags = IFF_BROADCAST;
 	ifs.ip = ss;
 	ifs.netmask = ss_mask;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list