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>
This commit is contained in:
Guy Harris 2014-12-08 11:40:35 -08:00
parent 0bd79c548e
commit d5f771cfd8
1 changed files with 1 additions and 1 deletions

View File

@ -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;