From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9DC8C139082 for ; Sun, 22 Jan 2017 17:59:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8F241E0EF8; Sun, 22 Jan 2017 17:59:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 71DD3E0EF8 for ; Sun, 22 Jan 2017 17:59:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6F21A341655 for ; Sun, 22 Jan 2017 17:59:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A75032CBB for ; Sun, 22 Jan 2017 17:59:32 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1480217809.fe581f7555f39140cbfac05d8fbccc1ef25eba0e.vapier@gentoo> Subject: [gentoo-commits] proj/pax-utils:master commit in: / X-VCS-Repository: proj/pax-utils X-VCS-Files: scanmacho.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: fe581f7555f39140cbfac05d8fbccc1ef25eba0e X-VCS-Branch: master Date: Sun, 22 Jan 2017 17:59:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 7f1f7351-a032-40cc-a91f-d89e57d946b6 X-Archives-Hash: 85ca155be89167abde884e2dea3c752a commit: fe581f7555f39140cbfac05d8fbccc1ef25eba0e Author: Mike Frysinger gentoo org> AuthorDate: Sun Nov 27 03:36:49 2016 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Sun Nov 27 03:36:49 2016 +0000 URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=fe581f75 scanmacho: fix 126 byte limit on -E option scanmacho.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scanmacho.c b/scanmacho.c index 30ee730..71b1593 100644 --- a/scanmacho.c +++ b/scanmacho.c @@ -25,7 +25,7 @@ static void usage(int status); static int parseargs(int argc, char *argv[]); /* variables to control behavior */ -static char match_etypes[126] = ""; +static const char *match_etypes = NULL; static char scan_envpath = 0; static char scan_symlink = 1; static char scan_archives = 0; @@ -348,7 +348,7 @@ static int scanmacho_fat(const char *filename, int fd, size_t len) default: break; } - if (strlen(match_etypes)) { + if (match_etypes) { char sbuf[128]; char ftype[32]; @@ -640,7 +640,7 @@ static int parseargs(int argc, char *argv[]) from_file = optarg; break; case 'E': - strncpy(match_etypes, optarg, sizeof(match_etypes)); + match_etypes = optarg; break; case 'M': match_bits = atoi(optarg);