Revision 1eec614b vnc.c
b/vnc.c | ||
---|---|---|
471 | 471 |
int has_fg, has_bg; |
472 | 472 |
uint8_t *last_fg, *last_bg; |
473 | 473 |
|
474 |
last_fg = (uint8_t *) malloc(vs->serverds.pf.bytes_per_pixel); |
|
475 |
last_bg = (uint8_t *) malloc(vs->serverds.pf.bytes_per_pixel); |
|
474 |
last_fg = (uint8_t *) qemu_malloc(vs->serverds.pf.bytes_per_pixel);
|
|
475 |
last_bg = (uint8_t *) qemu_malloc(vs->serverds.pf.bytes_per_pixel);
|
|
476 | 476 |
has_fg = has_bg = 0; |
477 | 477 |
for (j = y; j < (y + h); j += 16) { |
478 | 478 |
for (i = x; i < (x + w); i += 16) { |
... | ... | |
2237 | 2237 |
|
2238 | 2238 |
vs = qemu_mallocz(sizeof(VncState)); |
2239 | 2239 |
dcl = qemu_mallocz(sizeof(DisplayChangeListener)); |
2240 |
if (!vs || !dcl) |
|
2241 |
exit(1); |
|
2242 | 2240 |
|
2243 | 2241 |
ds->opaque = vs; |
2244 | 2242 |
dcl->idle = 1; |
... | ... | |
2289 | 2287 |
*cred = NULL; |
2290 | 2288 |
} |
2291 | 2289 |
|
2292 |
if (!(*cred = qemu_malloc(strlen(certdir) + strlen(filename) + 2))) |
|
2293 |
return -1; |
|
2290 |
*cred = qemu_malloc(strlen(certdir) + strlen(filename) + 2); |
|
2294 | 2291 |
|
2295 | 2292 |
strcpy(*cred, certdir); |
2296 | 2293 |
strcat(*cred, "/"); |
Also available in: Unified diff