aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-12-07 13:55:16 -0800
committerGuy Harris <guy@alum.mit.edu>2014-12-07 22:55:17 +0000
commitfc101c88987f8c8a66a7d72cafb32e2de51d58ad (patch)
treecf3e4db46a55bfb940c8eaf1f78bd1132c61ba3b
parent1237a159a880d9c2ca7f4ef4c83c75f8124ffc21 (diff)
downloadwireshark-fc101c88987f8c8a66a7d72cafb32e2de51d58ad.tar.gz
wireshark-fc101c88987f8c8a66a7d72cafb32e2de51d58ad.tar.bz2
wireshark-fc101c88987f8c8a66a7d72cafb32e2de51d58ad.zip
Fix copy-and-pasteo.
Change-Id: I482e691159ac0997d268280287ef8a3ca3760644 Reviewed-on: https://code.wireshark.org/review/5666 Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r--wiretap/k12.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/k12.c b/wiretap/k12.c
index d9b1d36ff7..52612f30e1 100644
--- a/wiretap/k12.c
+++ b/wiretap/k12.c
@@ -956,7 +956,7 @@ int k12_open(wtap *wth, int *err, gchar **err_info) {
}
}
- if (read_buffer[read_buffer + K12_SRCDESC_EXTRATYPE + extra_len + name_len - 1] != '\0') {
+ if (read_buffer[K12_SRCDESC_EXTRATYPE + extra_len + name_len - 1] != '\0') {
*err = WTAP_ERR_BAD_FILE;
*err_info = g_strdup("k12_open: source descriptor record contains non-null-terminated link-layer name");
destroy_k12_file_data(file_data);