aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2023-12-06 18:52:10 -0500
committerJames McCoy <jamessan@jamessan.com>2023-12-06 19:35:19 -0500
commitec80e4cb4d3145a0ab6c3f2820c9f21f2108d5ab (patch)
tree9559634e55863e8def3d299a4fee3269a1b4fda1 /src
parent6b00b8a369480a6535e7d286dd6ea27a6b0c94a5 (diff)
downloadrneovim-ec80e4cb4d3145a0ab6c3f2820c9f21f2108d5ab.tar.gz
rneovim-ec80e4cb4d3145a0ab6c3f2820c9f21f2108d5ab.tar.bz2
rneovim-ec80e4cb4d3145a0ab6c3f2820c9f21f2108d5ab.zip
fix(log): increase size of buffer for nvim instance name
16 bytes is not enough room for existing usage of the buffer by the tests, so the name may get truncated and cause log_spec test to fail: FAILED test/functional/core/log_spec.lua @ 30: log messages are formatted with name or test id test/helpers.lua:146: retry() attempts: 51 test/helpers.lua:155: Pattern "%.%d+%.%d/c +server_init:%d+: test log message" not found in log (last 100 lines): Xtest_logging: ERR 2023-11-24T23:36:34.252 T1274.2445945.0 server_init:57: test log message ERR 2023-11-24T23:36:34.275 T1274.2445945.0 server_init:57: test log message
Diffstat (limited to 'src')
-rw-r--r--src/nvim/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/log.c b/src/nvim/log.c
index a93dab6238..4370693f49 100644
--- a/src/nvim/log.c
+++ b/src/nvim/log.c
@@ -295,7 +295,7 @@ static bool v_do_log_to_file(FILE *log_file, int log_level, const char *context,
FUNC_ATTR_PRINTF(7, 0)
{
// Name of the Nvim instance that produced the log.
- static char name[16] = { 0 };
+ static char name[32] = { 0 };
static const char *log_levels[] = {
[LOGLVL_DBG] = "DBG",