Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit e8f54ee

Browse files
committed
fixup! (init_subshell_precmd): switch from stack to heap allocation to avoid buffer size issues
Signed-off-by: Yury V. Zaytsev <[email protected]>
1 parent aa4d89f commit e8f54ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/subshell/common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ init_subshell_precmd (void)
12421242
command_buffer_pipe[WRITE], command_buffer_pipe[WRITE],
12431243
subshell_pipe[WRITE]);
12441244
default:
1245-
fprintf (stderr, "subshell: unknown shell type (%d), aborting!\r\n", mc_global.shell->type);
1245+
fprintf (stderr, "subshell: unknown shell type (%u), aborting!\r\n", mc_global.shell->type);
12461246
exit (EXIT_FAILURE);
12471247
}
12481248
}

0 commit comments

Comments
 (0)