From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FgWSR-0000f7-2N for qemu-devel@nongnu.org; Wed, 17 May 2006 20:33:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FgWSQ-0000ev-4f for qemu-devel@nongnu.org; Wed, 17 May 2006 20:33:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FgWSQ-0000es-0h for qemu-devel@nongnu.org; Wed, 17 May 2006 20:33:38 -0400 Received: from [66.210.104.251] (helo=FreeDaemonHosting.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FgWVO-0008S1-9U for qemu-devel@nongnu.org; Wed, 17 May 2006 20:36:42 -0400 Received: from blue.fries.net (blue.hse.fries.net [IPv6:2001:240:58a::1c]) by FreeDaemonHosting.com (8.13.4/8.13.3) with ESMTP id k4I0XIDC004360 for ; Wed, 17 May 2006 19:33:19 -0500 (CDT) Received: from blue.fries.net (localhost.fries.net [IPv6:::1]) by blue.fries.net (8.13.6/8.13.6) with ESMTP id k4I0Wj28015942 for ; Wed, 17 May 2006 19:32:45 -0500 (CDT) Received: (from todd@localhost) by blue.fries.net (8.13.6/8.13.6/Submit) id k4I0Wjdv006727 for qemu-devel@nongnu.org; Wed, 17 May 2006 19:32:45 -0500 (CDT) From: "Todd T. Fries" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200605171932.45444.todd@fries.net> Subject: [Qemu-devel] [PATCH] type corrections in prototypes (qemu/qemu-img.c) Reply-To: todd@fries.net, qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Thu, 18 May 2006 00:33:39 -0000 To: qemu-devel@nongnu.org --- qemu-img.c.orig Mon Feb 20 22:57:21 2006 +++ qemu-img.c Mon Feb 20 22:56:51 2006 @@ -58,7 +58,7 @@ char *qemu_strdup(const char *str) return ptr; } -void pstrcpy(char *buf, int buf_size, const char *str) +void pstrcpy(char *buf, size_t buf_size, const char *str) { int c; char *q = buf; @@ -76,7 +76,7 @@ void pstrcpy(char *buf, int buf_size, co } /* strcat and truncate. */ -char *pstrcat(char *buf, int buf_size, const char *s) +char *pstrcat(char *buf, size_t buf_size, const char *s) { int len; len = strlen(buf); -- Todd Fries .. todd@fries.net _____________________________________________ | \ 1.636.410.0632 (voice) | Free Daemon Consulting, LLC \ 1.405.227.9094 (voice) | http://FreeDaemonConsulting.com \ 1.866.792.3418 (FAX) | "..in support of free software solutions." \ 250797 (FWD) | \ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 37E7 D3EB 74D0 8D66 A68D B866 0326 204E 3F42 004A http://todd.fries.net/pgp.txt