Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ku2lC-0000q2-Oy for qemu-devel@nongnu.org; Sun, 26 Oct 2008 06:22:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ku2lC-0000pm-0C for qemu-devel@nongnu.org; Sun, 26 Oct 2008 06:22:14 -0400 Received: from [199.232.76.173] (port=34842 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ku2lB-0000ph-MZ for qemu-devel@nongnu.org; Sun, 26 Oct 2008 06:22:13 -0400 Received: from savannah.gnu.org ([199.232.41.3]:51576 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ku2lB-0002Yc-KG for qemu-devel@nongnu.org; Sun, 26 Oct 2008 06:22:13 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Ku2lA-0008Mo-Pz for qemu-devel@nongnu.org; Sun, 26 Oct 2008 10:22:12 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Ku2lA-0008Mh-HD for qemu-devel@nongnu.org; Sun, 26 Oct 2008 10:22:12 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Sun, 26 Oct 2008 10:22:12 +0000 Subject: [Qemu-devel] [5538] Fix incorrect use of pstrcpy (malc) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5538 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5538 Author: blueswir1 Date: 2008-10-26 10:22:11 +0000 (Sun, 26 Oct 2008) Log Message: ----------- Fix incorrect use of pstrcpy (malc) Modified Paths: -------------- trunk/block-vvfat.c Modified: trunk/block-vvfat.c =================================================================== --- trunk/block-vvfat.c 2008-10-26 09:54:50 UTC (rev 5537) +++ trunk/block-vvfat.c 2008-10-26 10:22:11 UTC (rev 5538) @@ -625,7 +625,7 @@ entry=array_get_next(&(s->directory)); memset(entry->name,0x20,11); - pstrcpy((char*)entry->name, i, filename); + memcpy(entry->name, filename, i); if(j > 0) for (i = 0; i < 3 && filename[j+1+i]; i++)