diff options
-rw-r--r-- | src/main/Groups.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/Groups.c b/src/main/Groups.c index 86431704..13dc973b 100644 --- a/src/main/Groups.c +++ b/src/main/Groups.c @@ -388,8 +388,8 @@ static cGroupDefinition *CCTKi_SetupGroup(const char *implementation, int group_num; char *fullname1; - fullname1 = (char *) malloc( (strlen(implementation)+strlen(name)+2) - *sizeof(const char *)); + fullname1 = (char *) malloc( (strlen(implementation)+strlen(name)+3) + *sizeof(char)); sprintf(fullname1,"%s::%s",implementation,name); if((group_num = CCTK_GroupIndex(fullname1)) == -1) |