fix for comment spanning the buffer boundary

git-svn-id: svn://10.0.0.236/trunk@27258 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jband%netscape.com
1999-04-13 00:50:39 +00:00
parent 5dd5c7ad83
commit ae5f53675d
2 changed files with 10 additions and 0 deletions

View File

@@ -344,6 +344,11 @@ input_callback(IDL_input_reason reason, union IDL_input_data *cb_data,
data->point - check_point, check_point);
#endif
}
else {
data->point = data->buf + data->len;
goto fill_start;
}
assert(!data->f_raw && !data->f_include);
/*
* Now that we've advanced data->point to skip the comment,

View File

@@ -344,6 +344,11 @@ input_callback(IDL_input_reason reason, union IDL_input_data *cb_data,
data->point - check_point, check_point);
#endif
}
else {
data->point = data->buf + data->len;
goto fill_start;
}
assert(!data->f_raw && !data->f_include);
/*
* Now that we've advanced data->point to skip the comment,