diff options
| author | Warner Losh <imp@FreeBSD.org> | 1997-12-24 18:56:03 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 1997-12-24 18:56:03 +0000 |
| commit | 9bc34f7ce14c4401e6ee449f9eeb2c9222fbe756 (patch) | |
| tree | 387678feec78fd449ac77e874c0ce12402366d81 /libexec/bootpd/readfile.c | |
| parent | b44e4b7a2b2e4abdebb44e9c33b06a6d967ef9d7 (diff) | |
Notes
Diffstat (limited to 'libexec/bootpd/readfile.c')
| -rw-r--r-- | libexec/bootpd/readfile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/bootpd/readfile.c b/libexec/bootpd/readfile.c index 8dfd43023d0b..8d895fd0e906 100644 --- a/libexec/bootpd/readfile.c +++ b/libexec/bootpd/readfile.c @@ -19,7 +19,7 @@ PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - $Id$ + $Id: readfile.c,v 1.4 1997/02/22 14:21:09 peter Exp $ ************************************************************************/ @@ -817,7 +817,8 @@ eval_symbol(symbol, hp) if ((*symbol)[0] == 'T') { /* generic symbol */ (*symbol)++; value = get_u_long(symbol); - sprintf(current_tagname, "T%d", (int)value); + snprintf(current_tagname, sizeof(current_tagname), + "T%d", (int)value); eat_whitespace(symbol); if ((*symbol)[0] != '=') { return E_SYNTAX_ERROR; |
