mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use modifier for pid_t
This commit is contained in:
parent
8108594f47
commit
b4daa44270
1 changed files with 1 additions and 1 deletions
2
error.c
2
error.c
|
@ -524,7 +524,7 @@ bug_report_begin_valist(FILE *out, const char *fmt, va_list args)
|
|||
#if RUBY_DEVEL
|
||||
const char *cmd = getenv("RUBY_ON_BUG");
|
||||
if (cmd) {
|
||||
snprintf(buf, sizeof(buf), "%s %d", cmd, getpid());
|
||||
snprintf(buf, sizeof(buf), "%s %"PRI_PIDT_PREFIX"d", cmd, getpid());
|
||||
int r = system(buf);
|
||||
if (r == -1) {
|
||||
snprintf(buf, sizeof(buf), "Launching RUBY_ON_BUG command failed.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue