1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

lint: fix uninitstring in sixlowdriver

This commit is contained in:
Hinnerk van Bruinehsen 2014-10-30 20:41:04 +01:00
parent 0e065cff2c
commit 72115d629d

View File

@ -289,10 +289,11 @@ int border_initialize(char *if_name, const char *ip_addr, const char *tty_dev)
{
int res, i;
char command[21 + IPV6_ADDR_LEN + IF_NAME_LEN];
char ip_addr_cpy[IPV6_ADDR_LEN];
char ip_addr_cpy[IPV6_ADDR_LEN + 1];
struct in6_addr parsed_addr;
strncpy(ip_addr_cpy, ip_addr, IPV6_ADDR_LEN);
ip_addr_cpy[IPV6_ADDR_LEN] = '\0';
strtok(ip_addr_cpy, "/");