-
-
Notifications
You must be signed in to change notification settings - Fork 648
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#714 *read* does not work as expected on macOS Big Sur ??
- Loading branch information
1 parent
5426f25
commit 4f8be49
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,7 +66,7 @@ static int client_send_message(int argc, char **argv) | |
error("yabai-msg: failed to connect to socket..\n"); | ||
} | ||
|
||
int message_length = argc - 1; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
koekeishiya
Author
Owner
|
||
int message_length = argc; | ||
int argl[argc]; | ||
|
||
for (int i = 1; i < argc; ++i) { | ||
|
@@ -82,6 +82,7 @@ static int client_send_message(int argc, char **argv) | |
temp += argl[i]; | ||
*temp++ = '\0'; | ||
} | ||
*temp++ = '\0'; | ||
|
||
if (!socket_write_bytes(sockfd, message, message_length)) { | ||
error("yabai-msg: failed to send data..\n"); | ||
|
I knew that looked fishy ! :D