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 <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>.
    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

Reply via email to