Mine
public c v1 · immutablechar *ext, *end;ext = ast_strdupa(peer->name);ext = strchr(ext, '/');*ext = ':';if ((end = strchr(ext, '-'))) { *end++ = ':'; *end = '\0';}char *ext, *end;ext = ast_strdupa(peer->name);ext = strchr(ext, '/');*ext = ':';if ((end = strchr(ext, '-'))) { *end++ = ':'; *end = '\0';}