Fixed buffer stringlength

This commit is contained in:
Michiel Broek 2004-08-07 11:25:44 +00:00
parent 68758d5682
commit 6602fd5669

View File

@ -164,7 +164,7 @@ void WriteFileGroups(FILE *fp, faddr *f)
MacroRead(fi, fp);
fgetpos(fi,&fileptr);
temp = calloc(128, sizeof(char));
temp = calloc(PATH_MAX, sizeof(char));
sprintf(temp, "%s/etc/fgroups.data", getenv("MBSE_ROOT"));
if ((gp = fopen(temp, "r")) == NULL) {