From de9ff87b09df7972aa3d062cf9e8f54467703df0 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Tue, 17 Sep 2019 14:04:41 +0200 Subject: [PATCH] Fix string allocation in test --- test/create_delete.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/create_delete.c b/test/create_delete.c index 33051a2..e5ecdfa 100644 --- a/test/create_delete.c +++ b/test/create_delete.c @@ -8,7 +8,8 @@ int main(void) { msgSpaceId testId; msgSpace * mSPAC; - testId=(msgSpaceId)"test"; + strcpy(testId,"test"); + printf("RequestedId: %s\n",testId); mSPAC=msgSpaceCreate(testId,0,0,NULL); msgSpaceDelete(testId);