ext/stackprof.c in stackprof-0.2.5 vs ext/stackprof.c in stackprof-0.2.6
- old
+ new
@@ -344,10 +344,10 @@
{
int num, i, n;
VALUE prev_frame = Qnil;
_stackprof.overall_samples++;
- num = rb_profile_frames(0, sizeof(_stackprof.frames_buffer), _stackprof.frames_buffer, _stackprof.lines_buffer);
+ num = rb_profile_frames(0, sizeof(_stackprof.frames_buffer) / sizeof(VALUE), _stackprof.frames_buffer, _stackprof.lines_buffer);
if (_stackprof.raw) {
int found = 0;
if (!_stackprof.raw_samples) {