diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2011-03-16 22:53:41 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2011-03-16 22:53:41 +0000 |
commit | f5581380263f6cd046bf115d2d35f80b19080028 (patch) | |
tree | 287b8094c84613e5d2d4f205f95fac6e0422a702 /wiretap | |
parent | 46f9b98003d5002dd0d146d0c30a664f9c7c40e4 (diff) |
Avoid having large buffers on the stack (as noted in VS Code Analyzer warnings).
svn path=/trunk/; revision=36202
Diffstat (limited to 'wiretap')
-rw-r--r-- | wiretap/catapult_dct2000.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/catapult_dct2000.c b/wiretap/catapult_dct2000.c index eaf5cb3862..cfc21a7249 100644 --- a/wiretap/catapult_dct2000.c +++ b/wiretap/catapult_dct2000.c @@ -175,7 +175,7 @@ int catapult_dct2000_open(wtap *wth, int *err, gchar **err_info _U_) guint32 usecs; gint firstline_length = 0; dct2000_file_externals_t *file_externals; - gchar linebuff[MAX_LINE_LENGTH]; + static gchar linebuff[MAX_LINE_LENGTH]; /* Clear errno before reading from the file */ errno = 0; @@ -290,7 +290,7 @@ gboolean catapult_dct2000_read(wtap *wth, int *err, gchar **err_info _U_, int line_length, seconds, useconds, data_chars; int is_comment = FALSE; gint64 this_offset = offset; - gchar linebuff[MAX_LINE_LENGTH+1]; + static gchar linebuff[MAX_LINE_LENGTH+1]; gchar aal_header_chars[AAL_HEADER_CHARS]; gchar context_name[MAX_CONTEXT_NAME]; guint8 context_port; @@ -449,7 +449,7 @@ catapult_dct2000_seek_read(wtap *wth, gint64 seek_off, { gint64 offset = wth->data_offset; long dollar_offset, before_time_offset, after_time_offset; - gchar linebuff[MAX_LINE_LENGTH+1]; + static gchar linebuff[MAX_LINE_LENGTH+1]; gchar aal_header_chars[AAL_HEADER_CHARS]; gchar context_name[MAX_CONTEXT_NAME]; guint8 context_port; |