Remove worrying warning message when safe_strcpy tries to copy a pseaudo interface
authorJeremy Allison <jra@samba.org>
Wed, 2 Jul 2008 23:31:16 +0000 (16:31 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 2 Jul 2008 23:31:16 +0000 (16:31 -0700)
name that's too long. Reported by James Kosin <JKosin@intcomgrp.com>.
Jeremy.

source/lib/interface.c

index 9627bf63dd8ea68ad84c5a6bdbc9113d3cb3b7e1..eb0af9ef341d85edcad4f5040738f98cc9cc6fef 100644 (file)
@@ -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;