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:
parent
62dd234ff7
commit
ac700bce63
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user