Wasn't allocating big enough frame buffer!

svn path=/trunk/; revision=18848
This commit is contained in:
Martin Mathieson 2006-08-07 17:08:11 +00:00
parent 87a7623f91
commit 4842aeab96
1 changed files with 8 additions and 5 deletions

View File

@ -345,11 +345,14 @@ gboolean catapult_dct2000_read(wtap *wth, int *err, gchar **err_info _U_,
/* Get buffer pointer ready */
buffer_assure_space(wth->frame_buffer,
strlen(context_name)+1 + /* Context name */
1 + /* port */
strlen(protocol_name)+1 + /* Protocol name */
1 + /* direction */
1 + /* encap */
strlen(context_name)+1 + /* Context name */
1 + /* port */
strlen(timestamp_string)+1 + /* timestamp */
strlen(variant_name)+1 + /* variant */
strlen(outhdr_name)+1 + /* outhdr */
strlen(protocol_name)+1 + /* Protocol name */
1 + /* direction */
1 + /* encap */
(data_chars/2));
frame_buffer = buffer_start_ptr(wth->frame_buffer);