--- src/ifstats.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/ifstats.c b/src/ifstats.c index 0dee48f..fc5eb54 100644 --- a/src/ifstats.c +++ b/src/ifstats.c @@ -1349,7 +1349,7 @@ void selectiface(char *ifname, int withall, int *aborted)
if ((withall) && (list != NULL)) { ptmp = malloc(sizeof(struct iflist)); - strcpy(ptmp->ifname, "All interfaces"); + strncpy(ptmp->ifname, "All interfaces", sizeof (ptmp->ifname));
ptmp->prev_entry = NULL; list->prev_entry = ptmp;