diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-04-18 18:30:09 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-04-19 01:31:03 +0000 |
commit | 61677f9c3f23caee8590e68fcc0aea66fba845f7 (patch) | |
tree | fe7fb7d884392fbccf9680a45f389b5811004e6c /wiretap/mplog.c | |
parent | 378bdbfb3f49de5ebe9bd175c5a8e7698bc06a24 (diff) |
Call the buffer for the magic number "magic".
It's not guaranteed to be a C string, so don't call it "str".
Change-Id: I614ccf4f87b9f6f58d9b72596827224006f1de30
Reviewed-on: https://code.wireshark.org/review/14998
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/mplog.c')
-rw-r--r-- | wiretap/mplog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wiretap/mplog.c b/wiretap/mplog.c index 9e06a417d9..cfb3d015b6 100644 --- a/wiretap/mplog.c +++ b/wiretap/mplog.c @@ -224,15 +224,15 @@ mplog_seek_read(wtap *wth, gint64 seek_off, struct wtap_pkthdr *pkthdr, wtap_open_return_val mplog_open(wtap *wth, int *err, gchar **err_info _U_) { gboolean ok; - guint8 str[6]; + guint8 magic[6]; - ok = wtap_read_bytes(wth->fh, str, 6, err, err_info); + ok = wtap_read_bytes(wth->fh, magic, 6, err, err_info); if (!ok) { if (*err != WTAP_ERR_SHORT_READ) return WTAP_OPEN_ERROR; return WTAP_OPEN_NOT_MINE; } - if (memcmp(str, "MPCSII", 6) != 0) + if (memcmp(magic, "MPCSII", 6) != 0) return WTAP_OPEN_NOT_MINE; wth->file_encap = WTAP_ENCAP_ISO14443; |