summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Duncan <lduncan@suse.com>2021-09-18 16:14:59 -0700
committerGitHub <noreply@github.com>2021-09-18 16:14:59 -0700
commit6fc3c9cce65b8bcb75b097ac96179dfcb77cdd07 (patch)
treecc82616e6bd93d509dac13b4bc4d76613901317c
parent20d0aa96f2170339b1967f4be81e9c5042bbce03 (diff)
parent424d5967e94f6adf4c0669d390779af8da0bef20 (diff)
downloadopen-iscsi-6fc3c9cce65b8bcb75b097ac96179dfcb77cdd07.tar.gz
Merge pull request #277 from gonzoleeman/fix-recent-commit-gcc-error-v2
Fix compiler error introduced with recent IPv6 commit.
-rw-r--r--libopeniscsiusr/idbm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopeniscsiusr/idbm.c b/libopeniscsiusr/idbm.c
index b2524ed..6f57e45 100644
--- a/libopeniscsiusr/idbm.c
+++ b/libopeniscsiusr/idbm.c
@@ -996,7 +996,7 @@ static void _idbm_node_rec_link(struct iscsi_node *node, struct idbm_rec *recs,
/* use the interface name passed in, if any */
if (iface_name)
- strncpy((*node).iface.name, iface_name, ISCSI_MAX_IFACE_LEN);
+ strncpy((*node).iface.name, iface_name, ISCSI_MAX_IFACE_LEN-1);
/*
* Note: because we do not add the iface.iscsi_ifacename to