Wrong indexation for error message
Bruno JOFRET [Wed, 8 Jul 2009 09:04:35 +0000 (11:04 +0200)]
scilab/modules/fileio/sci_gateway/cpp/sci_export_to_hdf5.cpp

index 841879d..af4814e 100644 (file)
@@ -76,7 +76,8 @@ int sci_export_to_hdf5(char *fname,unsigned long fname_len)
                iRet = getVarAddressFromName(pstNameList[i + 1], &piAddrList[i]);
                if(iRet)
                {
-                       Scierror(999,_("%s: Wrong value for input argument #%d: Defined variable expected.\n"), fname, i + 1);
+                       // 2 = 1 for filename + 1 because starting arg number is 1 for human being
+                       Scierror(999,_("%s: Wrong value for input argument #%d: Defined variable expected.\n"), fname, i + 2);
                        return 0;
                }
        }