diff options
Diffstat (limited to 'cpukit/libmisc/monitor/mon-dname.c')
-rw-r--r-- | cpukit/libmisc/monitor/mon-dname.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libmisc/monitor/mon-dname.c b/cpukit/libmisc/monitor/mon-dname.c index fd10f3e333..b9907eb42b 100644 --- a/cpukit/libmisc/monitor/mon-dname.c +++ b/cpukit/libmisc/monitor/mon-dname.c @@ -57,7 +57,8 @@ rtems_monitor_dname_next( rtems_driver_name_t *table = object_information; rtems_driver_name_t *np = 0; - for (np = table + n ; n<RTEMS_MAX_DRIVER_NAMES; n++, np++) +/* XXX should we be using _IO_Number_of_devices */ + for (np = table + n ; n<_IO_Number_of_devices; n++, np++) if (np->device_name) goto done; |