summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Anisimov <maxim.anisimov.ua@gmail.com>2023-04-14 17:48:37 +0300
committerAleksander Morgado <aleksander@aleksander.es>2023-05-09 09:15:12 +0000
commit7f476c2e27d22238ff9fed41154f505841b3afad (patch)
tree4f4b5324384e0faedf6ddc9ba6b651d348a2044c
parent2455981ad6a6397e8d3db4c7fd1aa492bde7c153 (diff)
downloadModemManager-7f476c2e27d22238ff9fed41154f505841b3afad.tar.gz
libmm-glib,location-3gpp: fix conversion to gulong in mm_location_3gpp_new_from_string_variant
Signed-off-by: Maxim Anisimov <maxim.anisimov.ua@gmail.com>
-rw-r--r--libmm-glib/mm-location-3gpp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmm-glib/mm-location-3gpp.c b/libmm-glib/mm-location-3gpp.c
index 408161ca4..583069673 100644
--- a/libmm-glib/mm-location-3gpp.c
+++ b/libmm-glib/mm-location-3gpp.c
@@ -411,9 +411,9 @@ mm_location_3gpp_new_from_string_variant (GVariant *string,
strtoul (split[0], NULL, 10),
strlen (split[1]) == 3 ? 3 : 2,
strtoul (split[1], NULL, 10));
- self->priv->location_area_code = strtol (split[2], NULL, 16);
- self->priv->cell_id = strtol (split[3], NULL, 16);
- self->priv->tracking_area_code = strtol (split[4], NULL, 16);
+ self->priv->location_area_code = strtoul (split[2], NULL, 16);
+ self->priv->cell_id = strtoul (split[3], NULL, 16);
+ self->priv->tracking_area_code = strtoul (split[4], NULL, 16);
}
g_strfreev (split);