From f55bb2e27cd13e2b0574e86916cac94b7ff08714 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 19 Jan 2016 17:23:16 -0800 Subject: 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 --- wiretap/iseries.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wiretap') 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) { -- cgit v1.2.3