[PATCH] NUL terminate diff-tree header lines under -z.
[gitweb.git] / diff-helper.c
index 23855759eebc649e7dcc03b6fb3abae3064bb5ed..c977a1b8596587995f2ea24c6152ffcb5f3773a1 100644 (file)
@@ -121,7 +121,7 @@ int main(int ac, const char **av) {
                if (status) {
                unrecognized:
                        diff_flush(diff_output_style);
-                       printf("%s%c", sb1.buf, line_termination);
+                       printf("%s\n", sb1.buf);
                }
        }
        if (detect_rename)