Fix more bugs in r5044

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5087 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
blueswir1 2008-08-25 20:43:37 +00:00
parent 62dd234ff7
commit ac700bce63
2 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ static char *audio_alloc_prefix (const char *s)
}
len = strlen (s);
r = qemu_malloc (len + sizeof (qemu_prefix));
r = qemu_malloc (len + sizeof (qemu_prefix) + 1);
if (r) {
size_t i;

View File

@ -2826,7 +2826,7 @@ static void
oappend (s)
const char *s;
{
pstrcpy (obufp, (size_t)(obufp - obuf), s);
pstrcpy (obufp, sizeof(obuf) - (size_t)(obufp - obuf), s);
obufp += strlen (s);
}