Skip to content

Commit 81022be

Browse files
committed
Fix for issue #124
1 parent 352f006 commit 81022be

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: yaml
22
Type: Package
33
Title: Methods to Convert R Data to YAML and Back
4-
Date: 2022-10-17
5-
Version: 2.3.6
4+
Date: 2023-01-18
5+
Version: 2.3.7
66
Suggests: RUnit
77
Author: Shawn P Garbett [aut], Jeremy Stephens [aut, cre], Kirill Simonov [aut], Yihui Xie [ctb],
88
Zhuoer Dong [ctb], Hadley Wickham [ctb], Jeffrey Horner [ctb], reikoch [ctb],

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
YEAR: 2008-2018
1+
YEAR: 2008-2022
22
COPYRIGHT HOLDER: Vanderbilt University Medical Center
33
ORGANIZATION: Vanderbilt University Medical Center

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ You can install this package directly from CRAN by running (from within R):
6161
### Zip/Tarball
6262

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

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

7676
## Usage

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.6
1+
2.3.7

inst/CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
### Release Notes
22

3+
v2.3.7 clang deprecated sprintf. Changed in included clib to snprintf
4+
35
v2.3.6 C deprecated functions with no prototypes, these were added.
46

57
v2.3.5 Patch to put back in libyaml modifications that as.yaml relied on.

src/dumper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ yaml_emitter_generate_anchor(SHIM(yaml_emitter_t *emitter), int anchor_id)
251251

252252
if (!anchor) return NULL;
253253

254-
sprintf((char *)anchor, ANCHOR_TEMPLATE, anchor_id);
254+
snprintf((char *)anchor, ANCHOR_TEMPLATE_LENGTH, ANCHOR_TEMPLATE, anchor_id);
255255

256256
return anchor;
257257
}

0 commit comments

Comments
 (0)