aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-01-19 17:23:16 -0800
committerGuy Harris <guy@alum.mit.edu>2016-01-20 01:24:08 +0000
commitf55bb2e27cd13e2b0574e86916cac94b7ff08714 (patch)
tree107230995c029e21da09926311d390f3f2d25f92
parent106da4ad5f8f2e18a0382148a3c746793a5c55e4 (diff)
Note that using file_gets() for UCS-2 files is a bit of a hack.
Change-Id: I09cb8c8ea86c83f079c0882ca2f28e2f7c338b51 Reviewed-on: https://code.wireshark.org/review/13429 Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r--wiretap/iseries.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wiretap/iseries.c b/wiretap/iseries.c
index de29446193..29fc5332bd 100644
--- a/wiretap/iseries.c
+++ b/wiretap/iseries.c
@@ -191,6 +191,10 @@ static int iseries_UNICODE_to_ASCII (guint8 * buf, guint bytes);
static gboolean iseries_parse_hex_string (const char * ascii, guint8 * buf,
size_t len);
+/*
+ * XXX - it would probably be cleaner to use a UCS-2 flavor of file_gets(),
+ * rather than file_gets(), if we're reading a UCS-2 file.
+ */
wtap_open_return_val
iseries_open (wtap * wth, int *err, gchar ** err_info)
{