projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e61ec3
)
Remove the use of Linux / BSD specific asprintf call.
author
balrog
<balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 30 Apr 2007 18:43:50 +0000
(18:43 +0000)
committer
balrog
<balrog@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 30 Apr 2007 18:43:50 +0000
(18:43 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2760
c046a42c
-6fe2-441c-8c8c-
71466251a162
hw/pxa2xx.c
patch
|
blob
|
history
diff --git
a/hw/pxa2xx.c
b/hw/pxa2xx.c
index d49e851d38f4560f9d6b09e063ae2d6e66720bb3..ad5f2672d4978d50f9cce0b50161b34ac34c8548 100644
(file)
--- a/
hw/pxa2xx.c
+++ b/
hw/pxa2xx.c
@@
-1518,14
+1518,13
@@
struct pxa2xx_state_s *pxa270_init(DisplayState *ds, const char *revision)
{
struct pxa2xx_state_s *s;
struct pxa2xx_ssp_s *ssp;
- char
*cpu_model
;
+ char
cpu_model[16]
;
int iomemtype, i;
s = (struct pxa2xx_state_s *) qemu_mallocz(sizeof(struct pxa2xx_state_s));
s->env = cpu_init();
-
asprintf(&cpu_model
, "pxa270-%s", revision);
+
snprintf(cpu_model, sizeof(cpu_model)
, "pxa270-%s", revision);
cpu_arm_set_model(s->env, cpu_model);
- free(cpu_model);
s->pic = pxa2xx_pic_init(0x40d00000, s->env);