diff --git a/src/geoarrow.c b/src/geoarrow.c index f6b1cdc..e87d3e0 100644 --- a/src/geoarrow.c +++ b/src/geoarrow.c @@ -4839,7 +4839,7 @@ int64_t GeoArrowUnescapeCrs(struct GeoArrowStringView crs, char* out, int64_t n) if (n > crs.size_bytes) { memcpy(out, crs.data, crs.size_bytes); out[crs.size_bytes] = '\0'; - } else { + } else if (out != NULL) { memcpy(out, crs.data, n); } diff --git a/vendor-geoarrow.sh b/vendor-geoarrow.sh index 11bf66d..6df03d8 100755 --- a/vendor-geoarrow.sh +++ b/vendor-geoarrow.sh @@ -1,7 +1,7 @@ rm src/geoarrow* -GEOARROW_C_REF="e8cc0fd37a5cbd9cd1920c43aa4318daa220003e" +GEOARROW_C_REF="b677e8478bd24bb2d6534d23dc289a7619f9afa9" curl -L \ "https://github.com/geoarrow/geoarrow-c/archive/${GEOARROW_C_REF}.zip" \