Török Edwin wrote: > The bug appears to be an off-by-one here: > /* Combined sub-path and profile name */ > - if ((data_pathfile = malloc(strlen(profile_dir) + 1 + > strlen(profile))) == NULL) > + if ((data_pathfile = malloc(strlen(profile_dir) + 1 + > strlen(profile) + 1)) == NULL) Thanks. Graeme Gill.