From 7d20b5d73385d69de9d8e3fd53d82cb3173cca05 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 (Portage version: 2.0.51.19) --- net-misc/whois/files/whois-4.7.2-gentoo-security.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net-misc/whois') 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