From 607aa25b29aba836eea0e8e86fc371d82bbac2ee Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 19 Apr 2005 22:01:28 +0000 Subject: fix size arguement to snprintf Package-Manager: portage-2.0.51.19 --- net-misc/whois/Manifest | 2 +- net-misc/whois/files/whois-4.7.2-gentoo-security.patch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net-misc/whois/Manifest b/net-misc/whois/Manifest index 0882e0365a99..c8eb792a3e9d 100644 --- a/net-misc/whois/Manifest +++ b/net-misc/whois/Manifest @@ -7,4 +7,4 @@ MD5 57973d31d6aaf8ccd822e6f11837978b files/digest-whois-4.7.2 62 MD5 1327d76b68095d1c08e847fe3bbb4367 files/whois-4.7.2-config-file.patch 198 MD5 fbeb270cb2d2f8fbd313166116740f8b files/whois-4.6.13-gentoo-security.patch 4065 MD5 405e144ea2a2c14c0b066e42461ee8f4 files/digest-whois-4.6.13-r1 63 -MD5 e938d3b491e4fe166e15126d54794dbc files/whois-4.7.2-gentoo-security.patch 5611 +MD5 df632f0b3d2992153d9671f55cd835cf files/whois-4.7.2-gentoo-security.patch 5609 diff --git a/net-misc/whois/files/whois-4.7.2-gentoo-security.patch b/net-misc/whois/files/whois-4.7.2-gentoo-security.patch index 2d6c7b78d4a3..39553a6ec3af 100644 --- a/net-misc/whois/files/whois-4.7.2-gentoo-security.patch +++ b/net-misc/whois/files/whois-4.7.2-gentoo-security.patch @@ -5,7 +5,7 @@ if (strchr(ripeflags, ch)) { for (p = fstring; *p; p++); - sprintf(p--, "-%c ", ch); -+ snprintf(p--, sizeof(fstring)-1, "-%c ", ch); ++ snprintf(p--, sizeof(fstring), "-%c ", ch); continue; } if (strchr(ripeflagsp, ch)) { -- cgit v1.2.3-65-gdbad