aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/k12.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-10-06 22:01:12 -0700
committerGuy Harris <guy@alum.mit.edu>2014-10-07 05:01:39 +0000
commitffd48cefa6c468d4cdadd5e562f0d3c63eb4a2d6 (patch)
tree58061a0a150ff180c840de7776c78cf02fd97490 /wiretap/k12.c
parent683d657d4977487c073777f156938d6970e2f08b (diff)
Whitespace cleanups.
Change-Id: I92f983b2e04defab30eb31c14c484b9f0f582413 Reviewed-on: https://code.wireshark.org/review/4513 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/k12.c')
-rw-r--r--wiretap/k12.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/wiretap/k12.c b/wiretap/k12.c
index 20d7790d59..f9b1c3ed80 100644
--- a/wiretap/k12.c
+++ b/wiretap/k12.c
@@ -520,7 +520,7 @@ static gint get_record(k12_t *file_data, FILE_T fh, gint64 file_offset,
* looping.
*/
while (left > buffer_len) {
- buffer = (guint8*)g_realloc(buffer,buffer_len*=2);
+ buffer = (guint8*)g_realloc(buffer,buffer_len*=2);
if (is_random) {
file_data->rand_read_buff = buffer;
file_data->rand_read_buff_len = buffer_len;
@@ -990,7 +990,7 @@ int k12_open(wtap *wth, int *err, gchar **err_info) {
break;
}
} else {
- /* Record viewer generated files don't have this information */
+ /* Record viewer generated files don't have this information */
if (rec_len < K12_SRCDESC_PORT_TYPE + 1) {
/* Record isn't long enough to have a source descriptor extra type field */
*err = WTAP_ERR_BAD_FILE;
@@ -1011,9 +1011,9 @@ int k12_open(wtap *wth, int *err, gchar **err_info) {
/* XXX - this is assumed, in a number of places (not just in the
ascii_strdown_inplace() call below) to be null-terminated;
is that guaranteed (even with a corrupt file)?
- Obviously not, as a corrupt file could contain anything
- here; the Tektronix document says the strings "must end
- with \0", but a bad file could fail to add the \0. */
+ Obviously not, as a corrupt file could contain anything
+ here; the Tektronix document says the strings "must end
+ with \0", but a bad file could fail to add the \0. */
if (rec_len < K12_SRCDESC_EXTRATYPE + extra_len + name_len + stack_len) {
/* Record isn't long enough to have a source descriptor extra type field */
*err = WTAP_ERR_BAD_FILE;