From bf1fbd572a05776cb8c7d6abb4cffcb883e99bdf Mon Sep 17 00:00:00 2001 From: Linus Dierheimer Date: Mon, 1 Nov 2021 14:47:36 +0100 Subject: [PATCH] Fix display of long terminal names --- src/modules/terminal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/terminal.c b/src/modules/terminal.c index 5a7e3c7dc..4672485c5 100644 --- a/src/modules/terminal.c +++ b/src/modules/terminal.c @@ -21,8 +21,7 @@ void ffPrintTerminal(FFinstance* instance) { ffPrintLogoAndKey(instance, FF_TERMINAL_MODULE_NAME, 0, &instance->config.terminalKey); - uint32_t terminalExeNameLength = result->terminalExe.chars + result->terminalExe.length - result->terminalExeName; - if(strncmp(result->terminalExeName, result->terminalProcessName.chars, terminalExeNameLength) == 0) // if exeName starts with processName, print it. Otherwise print processName + if(strncmp(result->terminalExeName, result->terminalProcessName.chars, result->terminalProcessName.length) == 0) // if exeName starts with processName, print it. Otherwise print processName puts(result->terminalExeName); else ffStrbufPutTo(&result->terminalProcessName, stdout);