"Tony Lewis" <[EMAIL PROTECTED]> writes: > There is a buffer overflow in the following line of the proposed code: > > sprintf(filecopy, "\"%.2047s\"", file);
Wget has an `aprintf' utility function that allocates the result on the heap. Avoids both buffer overruns and arbitrary limits on file name length.