This patch solves the issue for those of you on Ruby 1.9.1.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@810288
13f79535-47bb-0310-9956-
ffa450edef68
} else {
char str[50];
sprintf(str, "don't know what type: %d", type);
- rb_raise(rb_eStandardError, str);
+ rb_raise(rb_eStandardError, "%s", str);
return 0;
}
}
} else {
char str[50];
sprintf(str, "don't know what type: %d", ctype);
- rb_raise(rb_eStandardError, str);
+ rb_raise(rb_eStandardError, "%s", str);
return 0;
}
}