I (phk) blundered with the last change. Make it right & better now.
Reviewed by: phk Submitted by: John Hay <jhay@mikom.csir.co.za>
This commit is contained in:
parent
6d5be8a5d4
commit
b117ae8a85
@ -242,7 +242,7 @@ read_piece(char *input_file)
|
|||||||
*s = '_';
|
*s = '_';
|
||||||
|
|
||||||
mk_piece_name(pname, delta, pce, npieces);
|
mk_piece_name(pname, delta, pce, npieces);
|
||||||
sprintf(tname,"tmp.%s",pname);
|
sprintf(tname,"%s.%d.tmp",pname,getpid());
|
||||||
if ((ofp = fopen(tname, "w")) == NULL)
|
if ((ofp = fopen(tname, "w")) == NULL)
|
||||||
{
|
{
|
||||||
err("cannot open '%s' for writing", tname);
|
err("cannot open '%s' for writing", tname);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user