diff options
Diffstat (limited to 'sbin/atm/atmconfig/diag.c')
-rw-r--r-- | sbin/atm/atmconfig/diag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/atm/atmconfig/diag.c b/sbin/atm/atmconfig/diag.c index 547d3642f6df..699d5ccf2f6b 100644 --- a/sbin/atm/atmconfig/diag.c +++ b/sbin/atm/atmconfig/diag.c @@ -868,7 +868,7 @@ diagif_fetch_vcc(struct diagif *aif, int fd) return; strncpy(ifr.ifr_name, aif->ifname, IFNAMSIZ); - ifr.ifr_name[IFNAMSIZ] = '\0'; + ifr.ifr_name[IFNAMSIZ - 1] = '\0'; aif->vtab = malloc(sizeof(*aif->vtab) + sizeof(aif->vtab->vccs[0]) * aif->mib.max_vccs); |