]> git.ipfire.org Git - thirdparty/git.git/blobdiff - bugreport.c
completion: nounset mode fixes
[thirdparty/git.git] / bugreport.c
index 28f4568b01f28bbbb8e6de4c07c92947533e6ef7..09579e268df975767f88677a17c4971a3eb23860 100644 (file)
@@ -180,7 +180,9 @@ int cmd_main(int argc, const char **argv)
                die(_("couldn't create a new file at '%s'"), report_path.buf);
        }
 
-       strbuf_write_fd(&buffer, report);
+       if (write_in_full(report, buffer.buf, buffer.len) < 0)
+               die_errno(_("unable to write to %s"), report_path.buf);
+
        close(report);
 
        /*