From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NWTnJ-0003md-QY for mharc-grub-devel@gnu.org; Sun, 17 Jan 2010 06:59:49 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWTnG-0003ia-PU for grub-devel@gnu.org; Sun, 17 Jan 2010 06:59:46 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWTnB-0003Yk-1i for grub-devel@gnu.org; Sun, 17 Jan 2010 06:59:45 -0500 Received: from [199.232.76.173] (port=35401 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWTnA-0003YI-Qz for grub-devel@gnu.org; Sun, 17 Jan 2010 06:59:40 -0500 Received: from fg-out-1718.google.com ([72.14.220.152]:18804) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NWTnA-0000FL-C2 for grub-devel@gnu.org; Sun, 17 Jan 2010 06:59:40 -0500 Received: by fg-out-1718.google.com with SMTP id e21so313684fga.12 for ; Sun, 17 Jan 2010 03:59:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=+raJgMZfvjoFtHzG/Q/7QCeiQ0KXNYXw8j4wQMMqzsc=; b=sbN8HnEBoGNJ0E0zelkoPPHzrTafjDiDTZo1vAzYq8bJNPvjKOVFkx2ZAgt70dY8Vi M8s7NabjDBIw4i2HEPVMX/rRCRq+TojbYTFV6nGlPXff13SjZjyZGfeiHiKHWnC9d7ya GNTtvv97Y3cGpwkKhzzAuvY3vPY/6Q46Mpa9Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=wYfByI5sTAWDm5UcNu68CdZMkQFg4WMy2KAQtlg3VpwMKUF7NkGz3g23CtgCsmky7N ERqujt+GlOnQUoJDK1BspLJWLEESRhcc6v/1oOag5rn22nsRIsZa4YwuIsuo66weJILL VpOoDSshBX87PnYy1qmxlBTgP6jLKHYwax32k= Received: by 10.87.71.15 with SMTP id y15mr5816720fgk.58.1263729579428; Sun, 17 Jan 2010 03:59:39 -0800 (PST) Received: from debian.bg45.phnet (144-116.203-62.cust.bluewin.ch [62.203.116.144]) by mx.google.com with ESMTPS id l12sm11599270fgb.25.2010.01.17.03.59.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 17 Jan 2010 03:59:37 -0800 (PST) Message-ID: <4B52FB9E.3050800@gmail.com> Date: Sun, 17 Jan 2010 12:59:26 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: The development of GNU GRUB References: <4B39CC24.9060607@gmail.com> <20100101093222.GU5847@riva.ucam.org> In-Reply-To: <20100101093222.GU5847@riva.ucam.org> X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig9286BC36CB64740E88CA385D" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] switch from sprintf to asprintf and snprintf X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jan 2010 11:59:47 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig9286BC36CB64740E88CA385D Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Colin Watson wrote: > On Tue, Dec 29, 2009 at 10:30:12AM +0100, Vladimir '=CF=86-coder/phcode= r' Serbinenko wrote: > =20 >> +char *EXPORT_FUNC(grub_asprintf) (const char *fmt, ...) >> + __attribute__ ((format (printf, 1, 2))); >> =20 > > It's very confusing that you've made grub_asprintf have a dramatically > different interface from asprintf. Perhaps you could call this > grub_xasprintf instead? (Although I notice that it doesn't die when > malloc fails, but merely returns NULL.) > =20 What about grub_aprintf ? --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig9286BC36CB64740E88CA385D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iF4EAREKAAYFAktS+6gACgkQNak7dOguQgnM8wD/ZA0zwZVHFCje3wv8crbvLmom 7EwXK8YpIzhjcqQtEbAA/jH0QLAG+QGOWpkfBjbJIZRC3S4UlCIjdSOuc7u1TbkU =Lnzf -----END PGP SIGNATURE----- --------------enig9286BC36CB64740E88CA385D--