From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NkeHD-0002vU-Na for qemu-devel@nongnu.org; Thu, 25 Feb 2010 09:01:15 -0500 Received: from [199.232.76.173] (port=49150 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkeHC-0002vK-4b for qemu-devel@nongnu.org; Thu, 25 Feb 2010 09:01:14 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NkeHB-0002Mz-8l for qemu-devel@nongnu.org; Thu, 25 Feb 2010 09:01:13 -0500 Received: from lo.gmane.org ([80.91.229.12]:44533) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NkeHA-0002Mb-Tu for qemu-devel@nongnu.org; Thu, 25 Feb 2010 09:01:13 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NkeH5-0004Ue-Na for qemu-devel@nongnu.org; Thu, 25 Feb 2010 15:01:07 +0100 Received: from 93-34-208-53.ip51.fastwebnet.it ([93.34.208.53]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Feb 2010 15:01:07 +0100 Received: from pbonzini by 93-34-208-53.ip51.fastwebnet.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Feb 2010 15:01:07 +0100 From: Paolo Bonzini Date: Thu, 25 Feb 2010 15:00:49 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] commit d354899 (Fix OpenBSD linker warning, 2010-02-23) List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org > - if (b) > - sprintf(b, "..."); > + if (b) { > + memcpy(b, "...", sizeof("...")); > + } What's wrong with strcpy? :-) (I doubt OpenBSD warns about that too). Paolo