diff --git a/res/res_geolocation/geoloc_eprofile.c b/res/res_geolocation/geoloc_eprofile.c index 64244f4424..af0e89c8e4 100644 --- a/res/res_geolocation/geoloc_eprofile.c +++ b/res/res_geolocation/geoloc_eprofile.c @@ -193,7 +193,7 @@ static int set_loc_src(struct ast_geoloc_eprofile *eprofile, const char *uri, co loc_src = strchr(local_uri, ';'); if (loc_src) { - loc_src = '\0'; + *loc_src = '\0'; loc_src++; }