GeoNetworking: Change cast to guint8 to fix win32 build.

Change-Id: I6692bfc0beecb7d023b5b69bd58729147a72d3f3
Reviewed-on: https://code.wireshark.org/review/31042
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
This commit is contained in:
Anders Broman 2018-12-14 12:49:17 +01:00 committed by Peter Wu
parent 98e74957b0
commit b430ac31af
1 changed files with 2 additions and 2 deletions

View File

@ -572,7 +572,7 @@ geonw_addr_resolve(hashgeonw_t *tp) {
const char *string = try_val_to_str(val, itss_type_small_names);
if (string == NULL) {
guint32_to_str_buf(val, rname, MAXNAMELEN-2);
l1 = (unsigned) strlen(rname);
l1 = (guint8) strlen(rname);
}
else {
l1 = (guint8) g_strlcpy(rname, string, MAXNAMELEN-2);
@ -584,7 +584,7 @@ geonw_addr_resolve(hashgeonw_t *tp) {
string = try_val_to_str(val, E164_ISO3166_country_code_short_value);
if (string == NULL) {
guint32_to_str_buf(val, rname, MAXNAMELEN-12);
l2 = (unsigned) strlen(rname);
l2 = (guint8) strlen(rname);
}
else {
l2 = (guint8) g_strlcpy(rname, string, MAXNAMELEN-l1-3);