WindowInfo: Use char[0] for FLA instead of char[1].
This is a private structure, so despite being an ABI break, it should not cause any problems.
This commit is contained in:
@@ -36,7 +36,7 @@ struct window_info {
|
|||||||
struct client_window_info : window_info {
|
struct client_window_info : window_info {
|
||||||
float tab_height;
|
float tab_height;
|
||||||
float border_size;
|
float border_size;
|
||||||
char name[1];
|
char name[0];
|
||||||
} _PACKED;
|
} _PACKED;
|
||||||
|
|
||||||
enum window_action {
|
enum window_action {
|
||||||
|
|||||||
@@ -2373,7 +2373,7 @@ Desktop::WriteWindowInfo(int32 serverToken, BPrivate::LinkSender& sender)
|
|||||||
int32 length = window->Title() ? strlen(window->Title()) : 0;
|
int32 length = window->Title() ? strlen(window->Title()) : 0;
|
||||||
|
|
||||||
sender.StartMessage(B_OK);
|
sender.StartMessage(B_OK);
|
||||||
sender.Attach<int32>(sizeof(client_window_info) + length);
|
sender.Attach<int32>(sizeof(client_window_info) + length + 1);
|
||||||
sender.Attach(&info, sizeof(window_info));
|
sender.Attach(&info, sizeof(window_info));
|
||||||
sender.Attach<float>(tabSize);
|
sender.Attach<float>(tabSize);
|
||||||
sender.Attach<float>(borderSize);
|
sender.Attach<float>(borderSize);
|
||||||
|
|||||||
Reference in New Issue
Block a user