Fix Windows compilation 33/14133/1
Vincent COUVERT [Wed, 26 Mar 2014 11:27:44 +0000 (12:27 +0100)]
Change-Id: I901cb77c3a41d8dee4aac6a835a407722160b681

scilab/modules/external_objects/src/cpp/ScilabObjects.cpp

index b38636d..07f1175 100644 (file)
@@ -494,7 +494,7 @@ int ScilabObjects::getArgumentId(int * addr, int * tmpvars, const bool isRef, co
         {
             /* '$+1' should be handled to ease insertion/extraction */
             int nameLen = 5;
-            char name[nameLen];
+            char name[5];
 
             err = getPolyVariableName(pvApiCtx, addr, name, &nameLen);
             if (err.iErr)