summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/src
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec/score/src')
-rw-r--r--c/src/exec/score/src/objectcomparenamestring.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/c/src/exec/score/src/objectcomparenamestring.c b/c/src/exec/score/src/objectcomparenamestring.c
index 045063e7cd..b743eda0da 100644
--- a/c/src/exec/score/src/objectcomparenamestring.c
+++ b/c/src/exec/score/src/objectcomparenamestring.c
@@ -24,6 +24,8 @@
#include <rtems/score/sysstate.h>
#include <rtems/score/isr.h>
+#include <string.h>
+
/*PAGE
*
* _Objects_Compare_name_string
@@ -45,7 +47,7 @@ boolean _Objects_Compare_name_string(
unsigned32 length
)
{
- if ( !strncmp( name_1_p, name_2_p, length ) )
+ if ( !strncmp( name_1, name_2, length ) )
return TRUE;
return FALSE;
}