Skip to content

Commit

Permalink
Improve navicache smartnames.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlipe committed Jul 21, 2011
1 parent 3dea01d commit 4b98daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpsbabel/navicache.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ nav_start(void *data, const XML_Char *xml_el, const XML_Char **xml_attr)
if (0 == strcmp(ap[0], "cache_id")) {
int id;

wpt_tmp->shortname = xstrdup(ap[1]);
id = atoi(ap[1]);
xasprintf(&wpt_tmp->shortname, "N%05X", id);
xasprintf(&wpt_tmp->url, "%s%d", NC_URL, id);
} else
if (0 == strcmp(ap[0], "name")) {
Expand Down

0 comments on commit 4b98daa

Please sign in to comment.