Revision 363a37d5 hw/vga.c
b/hw/vga.c | ||
---|---|---|
1726 | 1726 |
if (!full_update) |
1727 | 1727 |
return; |
1728 | 1728 |
|
1729 |
sprintf(msg_buffer, "%i x %i Text mode", width, height); |
|
1729 |
snprintf(msg_buffer, sizeof(msg_buffer), "%i x %i Text mode", |
|
1730 |
width, height); |
|
1730 | 1731 |
break; |
1731 | 1732 |
} |
1732 | 1733 |
|
... | ... | |
1799 | 1800 |
return; |
1800 | 1801 |
|
1801 | 1802 |
s->get_resolution(s, &width, &height); |
1802 |
sprintf(msg_buffer, "%i x %i Graphic mode", width, height); |
|
1803 |
snprintf(msg_buffer, sizeof(msg_buffer), "%i x %i Graphic mode", |
|
1804 |
width, height); |
|
1803 | 1805 |
break; |
1804 | 1806 |
case GMODE_BLANK: |
1805 | 1807 |
default: |
1806 | 1808 |
if (!full_update) |
1807 | 1809 |
return; |
1808 | 1810 |
|
1809 |
sprintf(msg_buffer, "VGA Blank mode");
|
|
1811 |
snprintf(msg_buffer, sizeof(msg_buffer), "VGA Blank mode");
|
|
1810 | 1812 |
break; |
1811 | 1813 |
} |
1812 | 1814 |
|
Also available in: Unified diff