aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/iseries.c
diff options
context:
space:
mode:
Diffstat (limited to 'wiretap/iseries.c')
-rw-r--r--wiretap/iseries.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/iseries.c b/wiretap/iseries.c
index b9441884eb..8c7b970b64 100644
--- a/wiretap/iseries.c
+++ b/wiretap/iseries.c
@@ -509,9 +509,9 @@ iseries_parse_packet (wtap * wth, FILE_T fh,
iseries_UNICODE_to_ASCII ((guint8 *)data, ISERIES_LINE_LENGTH);
}
/* look for packet header */
- for (i=0; i<8; i++) {
- if (strncmp(data+i,"*",1) == 0)
- strncpy(data+i," ",1);
+ for (i=0; i<8; i++) {
+ if (strncmp(data+i,"*",1) == 0)
+ g_strlcpy(data+i," ",(ISERIES_LINE_LENGTH * 2));
}
num_items_scanned =
sscanf (data,