sprintf() -> snprintf() (CID 7985).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40079 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3872a2d2fc
commit
b51ec9de58
@ -663,8 +663,8 @@ video_mode_menu()
|
||||
video_mode *mode = NULL;
|
||||
while ((mode = (video_mode *)list_get_next_item(&sModeList, mode)) != NULL) {
|
||||
char label[64];
|
||||
sprintf(label, "%ux%u %u bit", mode->width, mode->height,
|
||||
mode->bits_per_pixel);
|
||||
snprintf(label, sizeof(label), "%ux%u %u bit", mode->width,
|
||||
mode->height, mode->bits_per_pixel);
|
||||
|
||||
menu->AddItem(item = new(nothrow) MenuItem(label));
|
||||
item->SetData(mode);
|
||||
|
Loading…
Reference in New Issue
Block a user