bb1d809e7d
See http://fabrice.bellard.free.fr/qemu/changelog.html for details.
22 lines
620 B
Plaintext
22 lines
620 B
Plaintext
$OpenBSD: patch-qemu-img_c,v 1.2 2006/12/22 17:31:45 todd Exp $
|
|
--- qemu-img.c.orig Sat Jul 22 13:23:34 2006
|
|
+++ qemu-img.c Sun Nov 12 17:10:10 2006
|
|
@@ -62,7 +62,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;
|
|
@@ -80,7 +80,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);
|