~emersion/mrsh

657ea07572e2a9a035ec3804bec91bcbd900dac6 — Simon Ser 18 days ago e219bef master
frontend: PATH_MAX includes the terminating null char
1 files changed, 1 insertions(+), 1 deletions(-)

M frontend/readline.c
M frontend/readline.c => frontend/readline.c +1 -1
@@ 38,7 38,7 @@ static void sigint_handler(int n) {
#endif

static const char *get_history_path(void) {
	static char history_path[PATH_MAX + 1];
	static char history_path[PATH_MAX];
	snprintf(history_path, sizeof(history_path),
			"%s/.mrsh_history", getenv("HOME"));
	return history_path;