summaryrefslogtreecommitdiffstats
path: root/usr.bin/gprof/gprof.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/gprof/gprof.c')
-rw-r--r--usr.bin/gprof/gprof.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/gprof/gprof.c b/usr.bin/gprof/gprof.c
index 0d4d63f..a5c6140 100644
--- a/usr.bin/gprof/gprof.c
+++ b/usr.bin/gprof/gprof.c
@@ -42,7 +42,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)gprof.c 8.1 (Berkeley) 6/6/93";
#endif
static const char rcsid[] =
- "$Id: gprof.c,v 1.7 1998/08/08 17:48:26 jdp Exp $";
+ "$Id: gprof.c,v 1.8 1998/09/07 23:31:59 jdp Exp $";
#endif /* not lint */
#include <err.h>
@@ -155,7 +155,9 @@ main(argc, argv)
gmonname = *argv;
argv++;
} else {
- gmonname = GMONNAME;
+ gmonname = (char *) malloc(strlen(a_outname)+6);
+ strcpy(gmonname, a_outname);
+ strcat(gmonname, ".gmon");
}
/*
* get information from the executable file.
OpenPOWER on IntegriCloud