summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/netgraph/ng_tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_tty.c b/sys/netgraph/ng_tty.c
index ca11e97..c96edab 100644
--- a/sys/netgraph/ng_tty.c
+++ b/sys/netgraph/ng_tty.c
@@ -229,7 +229,7 @@ ngt_open(dev_t dev, struct tty *tp)
FREE(sc, M_NETGRAPH);
goto done;
}
- sprintf(name, "%s%d", typestruct.name, ngt_unit++);
+ snprintf(name, sizeof(name), "%s%d", typestruct.name, ngt_unit++);
/* Set back pointers */
sc->node->private = sc;
OpenPOWER on IntegriCloud