fastjar/fastjar-0.97-len1.patch

12 lines
376 B
Diff
Raw Normal View History

--- fastjar-0.97/jartool.c 2010-02-03 17:52:35.000000000 +0100
+++ fastjar-0.97/jartool.c-gil 2010-02-03 17:55:50.000000000 +0100
@@ -1257,7 +1257,7 @@
exit_on_error("write");
/* write the file name to the zip file */
- if (1 == write(jfd, fname, file_name_length))
+ if (-1 == write(jfd, fname, file_name_length))
exit_on_error("write");
if(verbose){