From 54546b050166cbb9512299b429c4c3541e4d3889 Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Fri, 29 Nov 2024 13:32:32 +0000 Subject: [PATCH] fix mac compile --- CHANGELOG.md | 5 +++++ src/regiter.c | 2 +- src/version.h | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ddb0408..87ff423 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [v0.19.1] +### Fixed +- Compilation on macOS with clang. + ## [v0.19.0] ### Added - Regions can now be provided in a three (or more) column BED file to `bamstats` to calculate per-region statistics. diff --git a/src/regiter.c b/src/regiter.c index 0133bb6..4118686 100644 --- a/src/regiter.c +++ b/src/regiter.c @@ -3,7 +3,7 @@ int region_from_string(char* input, char** chr, int* start, int* end) { *chr = xalloc(strlen(input) + 1, sizeof(char), "chr"); - strcpy(chr, input); + strcpy(*chr, input); char *reg_chr = (char *) hts_parse_reg(input, start, end); int rtn = 0; if (reg_chr) { diff --git a/src/version.h b/src/version.h index c3cf256..f0f0c65 100644 --- a/src/version.h +++ b/src/version.h @@ -1,2 +1,2 @@ -const char *argp_program_version = "0.19.0"; +const char *argp_program_version = "0.19.1";