aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/sim-load.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index f4779ad..ea0ce20 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,7 @@
+2011-01-05 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-load.c (sim_load_file): Change buffer type to unsigned char *.
+
2011-01-05 Joel Brobecker <brobecker@adacore.com>
* run.1: Copyright year update.
diff --git a/sim/common/sim-load.c b/sim/common/sim-load.c
index ee794ce..698d1c1 100644
--- a/sim/common/sim-load.c
+++ b/sim/common/sim-load.c
@@ -111,7 +111,7 @@ sim_load_file (sd, myname, callback, prog, prog_bfd, verbose_p, lma_p, do_write)
size = bfd_get_section_size (s);
if (size > 0)
{
- char *buffer;
+ unsigned char *buffer;
bfd_vma lma;
buffer = malloc (size);