sharkd: Add narrowing cast
authorGraham Bloice <graham.bloice@trihedral.com>
Sun, 31 Dec 2017 20:49:17 +0000 (20:49 +0000)
committerGraham Bloice <graham.bloice@trihedral.com>
Sun, 31 Dec 2017 21:50:09 +0000 (21:50 +0000)
Needed on x86 windows as size_t < gint64

Change-Id: I2d5ca99c71a9f3a0138da786d10b111867337904
Reviewed-on: https://code.wireshark.org/review/25093
Petri-Dish: Graham Bloice <graham.bloice@trihedral.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Graham Bloice <graham.bloice@trihedral.com>
sharkd_session.c

index 164f60ca1dcdeba3ac70cc11c0bcc39c7c2309f9..6b9901d2f8f05298d59ba06e913e38c37e43786f 100644 (file)
@@ -3859,7 +3859,7 @@ sharkd_session_process_download(char *buf, const jsmntok_t *tokens, int count)
                        printf(",\"mime\":");
                        json_puts_string(mime);
                        printf(",\"data\":");
-                       json_print_base64(eo_entry->payload_data, eo_entry->payload_len);
+                       json_print_base64(eo_entry->payload_data, (size_t)(eo_entry->payload_len));
                        printf("}\n");
                }
        }