2feda3c1f5
o see http://qemu.org/changelog.html for details o see README.OpenBSD for an intro to qemu on OpenBSD o disable broken arm host support for now
22 lines
604 B
Plaintext
22 lines
604 B
Plaintext
$OpenBSD: patch-cutils_c,v 1.2 2008/04/28 22:52:38 todd Exp $
|
|
--- cutils.c.orig Sun Jan 6 14:38:42 2008
|
|
+++ cutils.c Tue Apr 1 01:33:39 2008
|
|
@@ -23,7 +23,7 @@
|
|
*/
|
|
#include "qemu-common.h"
|
|
|
|
-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;
|
|
@@ -41,7 +41,7 @@ void pstrcpy(char *buf, int buf_size, const char *str)
|
|
}
|
|
|
|
/* 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);
|