Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sys/dev/netmap/netmap_bdg.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ nm_find_bridge(const char *name, int create, struct netmap_bdg_ops *ops)
nm_prerr("failed to allocate hash table");
return NULL;
}
strlcpy(b->bdg_basename, name, namelen);
strlcpy(b->bdg_basename, name, sizeof(b->bdg_basename));
b->bdg_basename[namelen] = '\0';
b->bdg_namelen = namelen;
b->bdg_active_ports = 0;
for (i = 0; i < NM_BDG_MAXPORTS; i++)
Expand Down
Loading