summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-12-07 16:58:13 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-12-07 16:58:13 +0000
commitc436b5b84de62906836d9030da246eda1f4ee371 (patch)
treeba47d2d326440cce2ab8de5797969c0df11df896
parent80a16ec48d84d577c76b30b123a1104e35f39be2 (diff)
downloadrtems-c436b5b84de62906836d9030da246eda1f4ee371.tar.bz2
Fixed indexing bug reported by Phil Wilshire.
-rw-r--r--c/src/lib/libmisc/monitor/mon-prmisc.c2
-rw-r--r--c/src/libmisc/monitor/mon-prmisc.c2
-rw-r--r--cpukit/libmisc/monitor/mon-prmisc.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/c/src/lib/libmisc/monitor/mon-prmisc.c b/c/src/lib/libmisc/monitor/mon-prmisc.c
index f1c55c4ad1..ce9aa9a554 100644
--- a/c/src/lib/libmisc/monitor/mon-prmisc.c
+++ b/c/src/lib/libmisc/monitor/mon-prmisc.c
@@ -108,7 +108,7 @@ rtems_monitor_dump_name(rtems_name name)
for (i=0; i<sizeof(u.c); i++)
length += rtems_monitor_dump_char(u.c[i]);
#else
- for (i=sizeof(u.c)-1; i ; i++)
+ for (i=sizeof(u.c)-1; i ; i--)
length += rtems_monitor_dump_char(u.c[i]);
#endif
return length;
diff --git a/c/src/libmisc/monitor/mon-prmisc.c b/c/src/libmisc/monitor/mon-prmisc.c
index f1c55c4ad1..ce9aa9a554 100644
--- a/c/src/libmisc/monitor/mon-prmisc.c
+++ b/c/src/libmisc/monitor/mon-prmisc.c
@@ -108,7 +108,7 @@ rtems_monitor_dump_name(rtems_name name)
for (i=0; i<sizeof(u.c); i++)
length += rtems_monitor_dump_char(u.c[i]);
#else
- for (i=sizeof(u.c)-1; i ; i++)
+ for (i=sizeof(u.c)-1; i ; i--)
length += rtems_monitor_dump_char(u.c[i]);
#endif
return length;
diff --git a/cpukit/libmisc/monitor/mon-prmisc.c b/cpukit/libmisc/monitor/mon-prmisc.c
index f1c55c4ad1..ce9aa9a554 100644
--- a/cpukit/libmisc/monitor/mon-prmisc.c
+++ b/cpukit/libmisc/monitor/mon-prmisc.c
@@ -108,7 +108,7 @@ rtems_monitor_dump_name(rtems_name name)
for (i=0; i<sizeof(u.c); i++)
length += rtems_monitor_dump_char(u.c[i]);
#else
- for (i=sizeof(u.c)-1; i ; i++)
+ for (i=sizeof(u.c)-1; i ; i--)
length += rtems_monitor_dump_char(u.c[i]);
#endif
return length;