diff --git a/builtin-log.c b/builtin-log.c
index b7e47cb5fe980374fa0d328830a524c6f6d65b66..a59b4acef1bc45f07f15e10c0501aa23de3eed7d 100644 (file)
--- a/builtin-log.c
+++ b/builtin-log.c
const char *arg = argv[i];
if (!strncmp(arg, "--encoding=", 11)) {
arg += 11;
- if (MAX_ENCODING_LENGTH <= strlen(arg))
- die(" Value of output encoding '%s' too long",
- arg);
if (strcmp(arg, "none"))
- strcpy(git_commit_encoding, arg);
+ git_log_output_encoding = strdup(arg);
else
- git_commit_encoding[0] = 0;
+ git_log_output_encoding = "";
}
else
die("unrecognized argument: %s", arg);