On Tuesday, January 22, 2013 12:43:56 PM UTC+5:30, Uli wrote:
>
> Hi!
>
> Simple proposal: Detect if the buffer read is completely full. The issue a
> warning that the following read is expected to read nonsense.
>
> It sdoesn't fix the problem, but keeps people aware should the problem
> become relevant.
>
> Weak variant: Add a comment in the source to document that.
>
> Regards,
> Ulrich
>
We can simply ignore the rest of the line.
if (*nl != '\n') {
log_warning("Config file line %d too long.",
line_number);
/* discard the rest of the line */
while((c = fgetc(f)) != '\n' && c != EOF);
continue;
}
--
You received this message because you are subscribed to the Google Groups
"open-iscsi" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/open-iscsi/-/5QFAkzRoQoYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/open-iscsi?hl=en.