summaryrefslogtreecommitdiff
path: root/navit/maptool/osm_protobufdb.c
diff options
context:
space:
mode:
authorJoseph Herlant <herlantj@gmail.com>2018-04-08 15:35:28 -0700
committerJoseph Herlant <herlantj@gmail.com>2018-04-08 15:35:28 -0700
commit690c6b5750b21dacff18ee05ffd59b5d8ceecc40 (patch)
tree04737bf587f7817bef6cdd99c995be99ad6c536f /navit/maptool/osm_protobufdb.c
parent9cac03d37e8018517d9dcc8a6b785657f24e82a8 (diff)
downloadnavit-690c6b5750b21dacff18ee05ffd59b5d8ceecc40.tar.gz
maptool: migrate strdup to g_strdup
Diffstat (limited to 'navit/maptool/osm_protobufdb.c')
-rw-r--r--navit/maptool/osm_protobufdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/maptool/osm_protobufdb.c b/navit/maptool/osm_protobufdb.c
index 692af1e5d..463817037 100644
--- a/navit/maptool/osm_protobufdb.c
+++ b/navit/maptool/osm_protobufdb.c
@@ -420,7 +420,7 @@ osm_protobufdb_string(struct osm_protobufdb_context *ctx, char *str)
if (!st->n_s) {
st->n_s++;
}
- strd=strdup(str);
+ strd=g_strdup(str);
st->s=g_realloc(st->s, sizeof(st->s[0])*(st->n_s+1));
if (st->n_s == 1) {
st->s[0].data=NULL;