Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 7953d741 authored by hhakim's avatar hhakim
Browse files

Fix windows compiling issue #191 (mexPoly.cpp.in).

parent 6deaf83e
Branches
Tags 3.0.17
No related merge requests found
Pipeline #833992 skipped
...@@ -185,10 +185,11 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) ...@@ -185,10 +185,11 @@ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
else else
{ {
const char* msg_end = " is an unknown command"; const char* msg_end = " is an unknown command";
char msg[256+strlen(msg_end)]; char *msg = new char[256+strlen(msg_end)];
strncat(msg, func, strlen(func)); strncat(msg, func, strlen(func));
strncat(msg+strlen(func), msg_end, strlen(msg_end)); strncat(msg+strlen(func), msg_end, strlen(msg_end));
mexErrMsgTxt(msg); mexErrMsgTxt(msg);
delete []msg;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment