summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4dff44b)
SCCS-vsn: lib/libc/gmon/gmon.c 4.7
-static char *sccsid = "@(#)gmon.c 4.6 (Berkeley) %G%";
+static char *sccsid = "@(#)gmon.c 4.7 (Berkeley) %G%";
#ifdef DEBUG
#include <stdio.h>
#ifdef DEBUG
#include <stdio.h>
s_lowpc = lowpc;
s_highpc = highpc;
s_textsize = highpc - lowpc;
s_lowpc = lowpc;
s_highpc = highpc;
s_textsize = highpc - lowpc;
- monsize = s_textsize + sizeof(struct phdr);
+ monsize = (s_textsize + 1) / 2 + sizeof(struct phdr);
buffer = sbrk( monsize );
if ( buffer == (char *) -1 ) {
write( 2 , MSG , sizeof(MSG) );
buffer = sbrk( monsize );
if ( buffer == (char *) -1 ) {
write( 2 , MSG , sizeof(MSG) );