diff --git a/Geo/GModelIO_Mesh.cpp b/Geo/GModelIO_Mesh.cpp
index 62e3374b02a99e587b82c16185d52e66fbb12a37..638b8db84614a6012d0b8e4dc328a8ebae52e5f6 100644
--- a/Geo/GModelIO_Mesh.cpp
+++ b/Geo/GModelIO_Mesh.cpp
@@ -1310,7 +1310,6 @@ int GModel::readPLY(const std::string &name)
 	Msg::Info("%d triangles", nbf);
 	Msg::Info("%d properties", nbView);
 
-	//printf("*********READING VERTEX \n");
 	vertexVector.resize(nbv);
 	for(int i = 0; i < nbv; i++) {
 	  double x,y,z;
@@ -1319,11 +1318,10 @@ int GModel::readPLY(const std::string &name)
 	  x = strtod(line, &pEnd);
 	  y = strtod(pEnd, &pEnd2);
 	  z = strtod(pEnd2, &pEnd3);
-	  //printf("xyz=%g %g %g \n", x,y,z);
 	  vertexVector[i] = new MVertex(x, y, z);
 
 	  pEnd = pEnd3;
-	  double prop[nbView];
+          std::vector<double> prop(nbView);
 	  for (int k=0; k< nbView; k++){
 	    prop[k]=strtod(pEnd, &pEnd2);
 	    pEnd = pEnd2;
@@ -1331,7 +1329,6 @@ int GModel::readPLY(const std::string &name)
 	  }
 	}
 
-	//printf("*********READING ELEMS \n");
 	for(int i = 0; i < nbf; i++) {
 	  if(!fgets(buffer, sizeof(buffer), fp)) break;
 	  int n[3], nbe;