Module Name: src Committed By: christos Date: Thu Mar 20 20:42:37 UTC 2014
Modified Files: src/sys/lib/libsa: bootp.c Log Message: kill sprintf To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/sys/lib/libsa/bootp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/lib/libsa/bootp.c diff -u src/sys/lib/libsa/bootp.c:1.38 src/sys/lib/libsa/bootp.c:1.39 --- src/sys/lib/libsa/bootp.c:1.38 Wed May 11 12:23:40 2011 +++ src/sys/lib/libsa/bootp.c Thu Mar 20 16:42:37 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: bootp.c,v 1.38 2011/05/11 16:23:40 zoltan Exp $ */ +/* $NetBSD: bootp.c,v 1.39 2014/03/20 20:42:37 christos Exp $ */ /* * Copyright (c) 1992 Regents of the University of California. @@ -106,7 +106,7 @@ bootp_addvend(u_char *area) *area++ = TAG_SWAPSERVER; /* Insert a NetBSD Vendor Class Identifier option. */ - sprintf(vci, "NetBSD:%s:libsa", MACHINE); + snprintf(vci, sizeof(vci), "NetBSD:%s:libsa", MACHINE); vcilen = strlen(vci); *area++ = TAG_CLASSID; *area++ = vcilen;