mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
Cover a potential buffer overrun problem
This commit is contained in:
parent
73e3fe9132
commit
4e4413decd
1 changed files with 2 additions and 2 deletions
|
|
@ -29,7 +29,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: modload.c,v 1.10 1995/10/28 17:06:05 peter Exp $
|
||||
* $Id: modload.c,v 1.11 1996/04/26 18:39:48 erich Exp $
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
@ -235,7 +235,7 @@ main(argc, argv)
|
|||
p++; /* skip over '/' */
|
||||
else
|
||||
p = modobj;
|
||||
sprintf(modout, "%s%sut", _PATH_TMP, p);
|
||||
snprintf(modout, sizeof modout, "%s%sut", _PATH_TMP, p);
|
||||
out = modout;
|
||||
/*
|
||||
* reverse meaning of -u - if we've generated a /tmp
|
||||
|
|
|
|||
Loading…
Reference in a new issue