emacsclient send_buffer size--

* lib-src/emacsclient.c (send_to_emacs_len):
No need to add 1 to SEND_BUFFER_SIZE.
This commit is contained in:
Paul Eggert
2026-04-12 17:05:44 -07:00
parent 180953c8f6
commit 46c08d8574

View File

@@ -821,7 +821,7 @@ send_to_emacs_len (HSOCKET s, const char *data, ptrdiff_t dlen)
enum { SEND_BUFFER_SIZE = 4096 }; enum { SEND_BUFFER_SIZE = 4096 };
/* Buffer to accumulate data to send in TCP connections. */ /* Buffer to accumulate data to send in TCP connections. */
static char send_buffer[SEND_BUFFER_SIZE + 1]; static char send_buffer[SEND_BUFFER_SIZE];
/* Fill pointer for the send buffer. */ /* Fill pointer for the send buffer. */
static int sblen; static int sblen;