X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=builtin-log.c;h=f4d974a7b8bfa0472a110273edf62b34b90902fe;hb=d3ff6f55012c939740ce0982b24aeb6fba3c6e4f;hp=29a885121dd81f1e6288835d12374acc19a751f4;hpb=b642d9ef643371990c0a921836f2a074d48ce1b3;p=git.git diff --git a/builtin-log.c b/builtin-log.c index 29a88512..f4d974a7 100644 --- a/builtin-log.c +++ b/builtin-log.c @@ -51,6 +51,7 @@ int cmd_whatchanged(int argc, const char **argv, char **envp) init_revisions(&rev); rev.diff = 1; rev.diffopt.recursive = 1; + rev.simplify_history = 0; return cmd_log_wc(argc, argv, envp, &rev); } @@ -112,7 +113,7 @@ static void reopen_stdout(struct commit *commit, int nr, int keep_subject) int len = 0; if (output_directory) { - strncpy(filename, output_directory, 1010); + safe_strncpy(filename, output_directory, 1010); len = strlen(filename); if (filename[len - 1] != '/') filename[len++] = '/';