diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-03-19 03:11:29 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-19 03:11:29 +0100 |
commit | 4b704d59d6fb152bcd0883b84af5936a29067f12 (patch) | |
tree | 037d55170484c0140e86e76fbf4a07c7ad40501d /net/tipc/node.c | |
parent | tcp: remove parameter from tcp_recv_urg(). (diff) | |
download | linux-4b704d59d6fb152bcd0883b84af5936a29067f12.tar.xz linux-4b704d59d6fb152bcd0883b84af5936a29067f12.zip |
tipc: fix non-const printf format arguments
Fix warnings from current gcc about using non-const strings as printf
args in TIPC. Compile tested only (not a TIPC user).
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | net/tipc/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/node.c b/net/tipc/node.c index 20d98c56e152..2c24e7d6d950 100644 --- a/net/tipc/node.c +++ b/net/tipc/node.c @@ -703,7 +703,7 @@ struct sk_buff *tipc_node_get_links(const void *req_tlv_area, int req_tlv_space) link_info.dest = htonl(tipc_own_addr & 0xfffff00); link_info.up = htonl(1); - sprintf(link_info.str, tipc_bclink_name); + strlcpy(link_info.str, tipc_bclink_name, TIPC_MAX_LINK_NAME); tipc_cfg_append_tlv(buf, TIPC_TLV_LINK_INFO, &link_info, sizeof(link_info)); /* Add TLVs for any other links in scope */ |