From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.77) (envelope-from <gentoo-commits+bounces-487563-garchives=archives.gentoo.org@lists.gentoo.org>) id 1Ssa7L-0007e0-Hs for garchives@archives.gentoo.org; Sat, 21 Jul 2012 13:53:11 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7ACDCE0529; Sat, 21 Jul 2012 13:53:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4EC24E0529 for <gentoo-commits@lists.gentoo.org>; Sat, 21 Jul 2012 13:53:04 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B553D1B40BA for <gentoo-commits@lists.gentoo.org>; Sat, 21 Jul 2012 13:53:03 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 2BF26E5434 for <gentoo-commits@lists.gentoo.org>; Sat, 21 Jul 2012 13:53:02 +0000 (UTC) From: "Anthony G. Basile" <blueness@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" <blueness@gentoo.org> Message-ID: <1342878773.4e08c6506212d895fdcac1a0db0843ca2b66fbcc.blueness@gentoo> Subject: [gentoo-commits] proj/elfix:master commit in: scripts/ X-VCS-Repository: proj/elfix X-VCS-Files: scripts/paxmodule.c X-VCS-Directories: scripts/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: 4e08c6506212d895fdcac1a0db0843ca2b66fbcc X-VCS-Branch: master Date: Sat, 21 Jul 2012 13:53:02 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: ba168724-966a-4ce0-bf94-b2a5a8f6d54e X-Archives-Hash: 7bde12946c467de589e26f8665129acc commit: 4e08c6506212d895fdcac1a0db0843ca2b66fbcc Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> AuthorDate: Sat Jul 21 13:52:53 2012 +0000 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> CommitDate: Sat Jul 21 13:52:53 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/elfix.git;a=3D= commit;h=3D4e08c650 scripts/paxmodule.c: fix FLAGS_SIZE --- scripts/paxmodule.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/paxmodule.c b/scripts/paxmodule.c index 3dfc656..bd009dc 100644 --- a/scripts/paxmodule.c +++ b/scripts/paxmodule.c @@ -189,9 +189,9 @@ pax_getflags(PyObject *self, PyObject *args) const char *f_name; int fd; uint16_t flags; - char buf[BUF_SIZE]; + char buf[FLAGS_SIZE]; =20 - memset(buf, 0, BUF_SIZE); + memset(buf, 0, FLAGS_SIZE); =20 if (!PyArg_ParseTuple(args, "s", &f_name)) { @@ -209,7 +209,7 @@ pax_getflags(PyObject *self, PyObject *args) flags =3D get_xt_flags(fd); if( flags !=3D UINT16_MAX ) { - memset(buf, 0, BUF_SIZE); + memset(buf, 0, FLAGS_SIZE); bin2string(flags, buf); } else @@ -218,7 +218,7 @@ pax_getflags(PyObject *self, PyObject *args) flags =3D get_pt_flags(fd); if( flags !=3D UINT16_MAX ) { - memset(buf, 0, BUF_SIZE); + memset(buf, 0, FLAGS_SIZE); bin2string(flags, buf); } #ifdef XATTR