summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2004-09-27 22:14:43 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2004-09-27 22:14:43 +0000
commitdf5f3ca7f5f749055dfdffdcac1eb2fd90603153 (patch)
tree4e93dc4cfb7552cc7f590794bff1fdefd81bc5cb
parent2004-09-27 Greg Menke <gregory.menke@gsfc.nasa.gov> (diff)
downloadrtems-df5f3ca7f5f749055dfdffdcac1eb2fd90603153.tar.bz2
2004-09-27 Joel Sherrill <joel@OARcorp.com>
PR 681/misc * stackchk/check.c: Fix dereference.
-rw-r--r--cpukit/libmisc/ChangeLog5
-rw-r--r--cpukit/libmisc/stackchk/check.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/libmisc/ChangeLog b/cpukit/libmisc/ChangeLog
index ad72c22e50..d964908275 100644
--- a/cpukit/libmisc/ChangeLog
+++ b/cpukit/libmisc/ChangeLog
@@ -1,3 +1,8 @@
+2004-09-27 Joel Sherrill <joel@OARcorp.com>
+
+ PR 681/misc
+ * stackchk/check.c: Fix dereference.
+
2004-09-17 Joel Sherrill <joel@OARcorp.com>
PR 677/misc
diff --git a/cpukit/libmisc/stackchk/check.c b/cpukit/libmisc/stackchk/check.c
index 165b1925a3..88cf1990bd 100644
--- a/cpukit/libmisc/stackchk/check.c
+++ b/cpukit/libmisc/stackchk/check.c
@@ -464,7 +464,7 @@ void Stack_check_Dump_threads_usage(
if ( info->is_string ) {
name = (char *) the_thread->Object.name;
} else {
- u32_name = *(unsigned32 *)the_thread->Object.name;
+ u32_name = (unsigned32)the_thread->Object.name;
name[ 0 ] = (u32_name >> 24) & 0xff;
name[ 1 ] = (u32_name >> 16) & 0xff;
name[ 2 ] = (u32_name >> 8) & 0xff;