diff options
| author | Yusuke Endoh <mame@ruby-lang.org> | 2019-08-01 14:25:15 +0900 |
|---|---|---|
| committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-08-01 14:25:15 +0900 |
| commit | f45bb760fb0a751915a9eac5f7dc4075e88e0cfc (patch) | |
| tree | ee373947d7e0fa6d7f626cdfb50c0ed0b0027fb4 /spec/ruby/core/integer | |
| parent | 746386710646f93a5b9e0c408b00408041645091 (diff) | |
signal.c: make signame_prefix a nul-terminated string
gcc 9.1.0 warns this.
```
signal.c:258:46: warning: '%.*s' directive argument is not a nul-terminated string [-Wformat-overflow=]
258 | rb_raise(rb_eArgError, "unsupported signal `%.*s%"PRIsVALUE"'",
| ^~~~
259 | prefix, signame_prefix, vsig);
| ~~~~~~~~~~~~~~
signal.c:200:19: note: referenced argument declared here
200 | static const char signame_prefix[3] = "SIG";
| ^~~~~~~~~~~~~~
```
https://rubyci.org/logs/rubyci.s3.amazonaws.com/ubuntu/ruby-master/log/20190801T033009Z.log.html.gz
Diffstat (limited to 'spec/ruby/core/integer')
0 files changed, 0 insertions, 0 deletions
