summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-03 12:55:00 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-04 07:24:29 +0200
commite4fd35ddcb3c3a456e825a7542b302b13c4cb51f (patch)
tree64bcc7c8ee220d4faa3cc0489437fc87bd083a94 /testsuites/psxtests
parentscore: Optimize _Objects_Get_local() (diff)
downloadrtems-e4fd35ddcb3c3a456e825a7542b302b13c4cb51f.tar.bz2
confdefs.h: Fix named object size estimate
Account for the terminating null character. Use _POSIX_PATH_MAX instead of NAME_MAX according to _POSIX_Semaphore_Manager_initialization() and _POSIX_Message_queue_Manager_initialization().
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r--testsuites/psxtests/psxconfig01/init.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuites/psxtests/psxconfig01/init.c b/testsuites/psxtests/psxconfig01/init.c
index 1edd9ba9d8..9f3c134a6d 100644
--- a/testsuites/psxtests/psxconfig01/init.c
+++ b/testsuites/psxtests/psxconfig01/init.c
@@ -200,7 +200,7 @@ typedef struct {
static area region_areas [CONFIGURE_MAXIMUM_REGIONS];
#endif
-static char posix_name [NAME_MAX];
+static char posix_name [_POSIX_PATH_MAX + 1];
#if !defined(RTEMS_SMP)
static void *task_var;
@@ -208,10 +208,10 @@ static char posix_name [NAME_MAX];
static char *get_posix_name(char a, char b, char c, int i)
{
- posix_name [NAME_MAX - 5] = a;
- posix_name [NAME_MAX - 4] = b;
- posix_name [NAME_MAX - 3] = c;
- posix_name [NAME_MAX - 2] = 'A' + i;
+ posix_name [_POSIX_PATH_MAX - 4] = a;
+ posix_name [_POSIX_PATH_MAX - 3] = b;
+ posix_name [_POSIX_PATH_MAX - 2] = c;
+ posix_name [_POSIX_PATH_MAX - 1] = 'A' + i;
return posix_name;
}