1
0
Fork 0
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:
Nobuyoshi Nakada 2019-08-19 16:32:57 +09:00
parent 8108594f47
commit b4daa44270
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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.");