Daniel Stenberg <[EMAIL PROTECTED]> writes: > You're right of course. Hm. No, it can probably only happen if the first byte > in an existing file is a zero-byte, so that strlen() return 0...
Yup. Or the first byte of any line. I.e. Wget will die if it encounters the "\n\0" sequence of characters, which is a bug. This should be fixed by replacing the "assert" with "continue". That line may be impossible to process given the standard handling of C strings, but it doesn't mean that other lines in the file cannot be used.