diff --git a/Mesh/Read_Mesh.cpp b/Mesh/Read_Mesh.cpp index f1c77ee2462b14131c5f874e2b22934614e166b6..b89df5350dca81ea70aba0de386f3ae9e6620b03 100644 --- a/Mesh/Read_Mesh.cpp +++ b/Mesh/Read_Mesh.cpp @@ -1,4 +1,4 @@ -// $Id: Read_Mesh.cpp,v 1.77 2004-07-01 15:00:23 geuzaine Exp $ +// $Id: Read_Mesh.cpp,v 1.78 2004-10-08 02:41:20 geuzaine Exp $ // // Copyright (C) 1997-2004 C. Geuzaine, J.-F. Remacle // @@ -468,7 +468,7 @@ void Read_Mesh_MSH(Mesh * M, FILE * fp) } do { - fgets(String, 256, fp); + fgets(String, sizeof(String), fp); if(feof(fp)) Msg(GERROR, "Prematured end of mesh file"); } while(String[0] != '$');