Use snprintf() instead of sprintf().

This commit is contained in:
archie 2000-03-13 18:54:10 +00:00
parent bff10fbd33
commit 5621bcbfd1

View File

@ -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;