pkgsrc/net/packit/patches/patch-src_utils.c
maya 5b8c1d149e packit: don't overflow a buffer. now runs with SSP/FORTIFY.
(this is already fixed in an alternative upstream)
++PKGREVISION
2018-01-26 10:52:04 +00:00

15 lines
364 B
C

$NetBSD: patch-src_utils.c,v 1.1 2018/01/26 10:52:04 maya Exp $
Don't overflow a buffer.
--- src/utils.c.orig 2004-04-14 01:48:17.000000000 +0000
+++ src/utils.c
@@ -137,7 +137,7 @@ print_separator(int bnl, int anl, u_int8
#endif
va_start(va, msgp);
- vsnprintf(msg, 256, msgp, va);
+ vsnprintf(msg, 255, msgp, va);
msg_len = strlen(msg);