Skip to content

Commit

Permalink
Fix for issue #124
Browse files Browse the repository at this point in the history
  • Loading branch information
spgarbet committed Jan 18, 2023
1 parent 352f006 commit 81022be
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: yaml
Type: Package
Title: Methods to Convert R Data to YAML and Back
Date: 2022-10-17
Version: 2.3.6
Date: 2023-01-18
Version: 2.3.7
Suggests: RUnit
Author: Shawn P Garbett [aut], Jeremy Stephens [aut, cre], Kirill Simonov [aut], Yihui Xie [ctb],
Zhuoer Dong [ctb], Hadley Wickham [ctb], Jeffrey Horner [ctb], reikoch [ctb],
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
YEAR: 2008-2018
YEAR: 2008-2022
COPYRIGHT HOLDER: Vanderbilt University Medical Center
ORGANIZATION: Vanderbilt University Medical Center
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ You can install this package directly from CRAN by running (from within R):
### Zip/Tarball

1. Download the appropriate zip file or tar.gz file from the
[Github releases](https://github.com/viking/r-yaml/releases) page.
[Github releases](https://github.com/vubiostat/r-yaml/releases) page.
2. Run `R CMD INSTALL <filename>`

### Git (via devtools)
Expand All @@ -70,7 +70,7 @@ You can install this package directly from CRAN by running (from within R):
2. In R, run the following:
```R
library(devtools)
install_github('viking/r-yaml')
install_github('vubiostat/r-yaml')
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3.6
2.3.7
2 changes: 2 additions & 0 deletions inst/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
### Release Notes

v2.3.7 clang deprecated sprintf. Changed in included clib to snprintf

v2.3.6 C deprecated functions with no prototypes, these were added.

v2.3.5 Patch to put back in libyaml modifications that as.yaml relied on.
Expand Down
2 changes: 1 addition & 1 deletion src/dumper.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ yaml_emitter_generate_anchor(SHIM(yaml_emitter_t *emitter), int anchor_id)

if (!anchor) return NULL;

sprintf((char *)anchor, ANCHOR_TEMPLATE, anchor_id);
snprintf((char *)anchor, ANCHOR_TEMPLATE_LENGTH, ANCHOR_TEMPLATE, anchor_id);

return anchor;
}
Expand Down

0 comments on commit 81022be

Please sign in to comment.