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:
Augustin Cavalier
2021-11-23 13:50:45 -05:00
parent 3d34a937af
commit ba3ee26af0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ struct window_info {
struct client_window_info : window_info {
float tab_height;
float border_size;
char name[1];
char name[0];
} _PACKED;
enum window_action {
+1 -1
View File
@@ -2373,7 +2373,7 @@ Desktop::WriteWindowInfo(int32 serverToken, BPrivate::LinkSender& sender)
int32 length = window->Title() ? strlen(window->Title()) : 0;
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<float>(tabSize);
sender.Attach<float>(borderSize);