*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)gmon.c 5.3 (Berkeley) 3/9/86";
+static char sccsid[] = "@(#)gmon.c 5.4 (Berkeley) 8/27/87";
#endif LIBC_SCCS and not lint
#ifdef DEBUG
monsize = (s_textsize / HISTFRACTION) + sizeof(struct phdr);
buffer = sbrk( monsize );
if ( buffer == (char *) -1 ) {
- write( 2 , MSG , sizeof(MSG) );
+ write( 2 , MSG , sizeof(MSG) - 1 );
return;
}
froms = (unsigned short *) sbrk( s_textsize / HASHFRACTION );
if ( froms == (unsigned short *) -1 ) {
- write( 2 , MSG , sizeof(MSG) );
+ write( 2 , MSG , sizeof(MSG) - 1 );
froms = 0;
return;
}
}
tos = (struct tostruct *) sbrk( tolimit * sizeof( struct tostruct ) );
if ( tos == (struct tostruct *) -1 ) {
- write( 2 , MSG , sizeof(MSG) );
+ write( 2 , MSG , sizeof(MSG) - 1 );
froms = 0;
tos = 0;
return;
overflow:
profiling++; /* halt further profiling */
# define TOLIMIT "mcount: tos overflow\n"
- write(2, TOLIMIT, sizeof(TOLIMIT));
+ write(2, TOLIMIT, sizeof(TOLIMIT) - 1);
goto out;
}
asm(".text");