aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-12-08 11:40:35 -0800
committerGuy Harris <guy@alum.mit.edu>2014-12-08 19:41:13 +0000
commitd5f771cfd85df48481e6a7b33a7ffbae0518e23f (patch)
treee51525182313b685403ce9ca066074ef0010607a /wiretap
parent0bd79c548e5ecfd78bec6aa1ce3167d0aa0baae2 (diff)
Use correct expression in a "length too short" message.
Doesn't change the behavior of the code, but makes it more consistent. Change-Id: I6f07fbbb4c7d14d8a46ecfd1c419d951c356fd77 Reviewed-on: https://code.wireshark.org/review/5672 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/k12.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/k12.c b/wiretap/k12.c
index 955c8387c3..a36fbedc96 100644
--- a/wiretap/k12.c
+++ b/wiretap/k12.c
@@ -952,7 +952,7 @@ wtap_open_return_val k12_open(wtap *wth, int *err, gchar **err_info) {
*/
*err = WTAP_ERR_BAD_FILE;
*err_info = g_strdup_printf("k12_open: source descriptor record length %u < %u",
- rec_len, K12_SRCDESC_STACKLEN + 2);
+ rec_len, K12_SRCDESC_HWPART);
destroy_k12_file_data(file_data);
g_free(rec);
return WTAP_OPEN_ERROR;