summaryrefslogtreecommitdiffstats
path: root/scilab/modules/api_scilab
diff options
context:
space:
mode:
authorantoine ELIAS <antoine.elias@scilab.org>2010-02-01 13:16:15 +0100
committerantoine ELIAS <antoine.elias@scilab.org>2010-02-01 13:16:15 +0100
commitaa33fea4c130347bc90175f5d9495cb4f53269c2 (patch)
tree7f636b4bc291b6b986f451481d798355214c1ada /scilab/modules/api_scilab
parent242e3031692d39cec9f6610ff7be839485691406 (diff)
downloadscilab-aa33fea4c130347bc90175f5d9495cb4f53269c2.zip
scilab-aa33fea4c130347bc90175f5d9495cb4f53269c2.tar.gz
bug fix in getProcessMode api functions
Diffstat (limited to 'scilab/modules/api_scilab')
-rw-r--r--scilab/modules/api_scilab/src/cpp/api_common.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scilab/modules/api_scilab/src/cpp/api_common.cpp b/scilab/modules/api_scilab/src/cpp/api_common.cpp
index 4200ff7..ee9129d 100644
--- a/scilab/modules/api_scilab/src/cpp/api_common.cpp
+++ b/scilab/modules/api_scilab/src/cpp/api_common.cpp
@@ -382,7 +382,7 @@ SciErr getProcessMode(void* _pvCtx, int _iPos, int* _piAddRef, int *_piMode)
382 return sciErr; 382 return sciErr;
383 } 383 }
384 384
385 pstMode[1] = (char*)MALLOC(sizeof(char) * (iLen + 1)); //+1 for null termination 385 pstMode[0] = (char*)MALLOC(sizeof(char) * (iLen + 1)); //+1 for null termination
386 sciErr = getMatrixOfString(_pvCtx, piAddr2, &iRows2, &iCols2, &iLen, pstMode); 386 sciErr = getMatrixOfString(_pvCtx, piAddr2, &iRows2, &iCols2, &iLen, pstMode);
387 if(sciErr.iErr) 387 if(sciErr.iErr)
388 { 388 {