mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-30 13:35:27 +00:00
Fix compression without outname
This commit is contained in:
parent
bd4e5bfc1a
commit
16ec37a226
@ -104,7 +104,7 @@ void compress(const char *method, const char *infile, const char *outfile) {
|
||||
* STDIN, output to <infile>.[ext] */
|
||||
char *tmp = new char[strlen(infile) + 5];
|
||||
sprintf(tmp, "%s%s", infile, fmt2ext[it->second]);
|
||||
out_fd = xopen(outfile, O_WRONLY | O_CREAT | O_TRUNC, 0644);
|
||||
out_fd = xopen(tmp, O_WRONLY | O_CREAT | O_TRUNC, 0644);
|
||||
fprintf(stderr, "Compressing to [%s]\n", tmp);
|
||||
delete[] tmp;
|
||||
rm_in = true;
|
||||
|
Loading…
Reference in New Issue
Block a user