OSDN Git Service
(root)
/
pf3gnuchains
/
pf3gnuchains3x.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* po/bfd.pot: Updated by the Translation project.
[pf3gnuchains/pf3gnuchains3x.git]
/
gprof
/
hist.c
diff --git
a/gprof/hist.c
b/gprof/hist.c
index
d0c02d3
..
a790fd4
100644
(file)
--- a/
gprof/hist.c
+++ b/
gprof/hist.c
@@
-198,8
+198,8
@@
hist_read_rec (FILE * ifp, const char *filename)
/* This is new record. Add it to global array and allocate space for
the samples. */
/* This is new record. Add it to global array and allocate space for
the samples. */
- histograms =
xrealloc (histograms,
-
sizeof (histogram) * (num_histograms + 1));
+ histograms =
(struct histogram *)
+
xrealloc (histograms,
sizeof (histogram) * (num_histograms + 1));
memcpy (histograms + num_histograms,
&n_record, sizeof (histogram));
record = &histograms[num_histograms];
memcpy (histograms + num_histograms,
&n_record, sizeof (histogram));
record = &histograms[num_histograms];