From 1c34a108791e071c2d75989b26bb1d260e646d18 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 7 Aug 1996 18:44:27 +0000 Subject: [PATCH] Wed Aug 7 14:43:51 1996 Philippe De Muyter * core.c (read_function_mappings): Cast xmalloc return. --- gprof/ChangeLog | 4 ++++ gprof/core.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gprof/ChangeLog b/gprof/ChangeLog index 0167f01574..78a3d0587a 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,3 +1,7 @@ +Wed Aug 7 14:43:51 1996 Philippe De Muyter + + * core.c (read_function_mappings): Cast xmalloc return. + Thu Jul 4 12:01:42 1996 Ian Lance Taylor * gprof.c (VERSION): Define as "2.7.1". diff --git a/gprof/core.c b/gprof/core.c index f2e341cb3b..3103dc281f 100644 --- a/gprof/core.c +++ b/gprof/core.c @@ -66,7 +66,8 @@ DEFUN (read_function_mappings, (filename), const char *filename) } /* Now we know how big we need to make our table. */ - symbol_map = xmalloc (count * sizeof (struct function_map)); + symbol_map = ((struct function_map *) + xmalloc (count * sizeof (struct function_map))); /* Rewind the input file so we can read it again. */ rewind (file);