Changeset 19893


Ignore:
Timestamp:
12/14/15 06:20:33 (9 years ago)
Author:
Mathieu Morlighem
Message:

BUG: COPY string, do not just pass the salt... euh the pointer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/wrappers/python/io/FetchPythonData.cpp

    r19683 r19893  
    805805        string=PyBytes_AS_STRING(py_bytes);
    806806
    807         *pstring=string;
     807        /*copy string (note strlen does not include trailing NULL): */
     808        *pstring=xNew<char>(strlen(string)+1);
     809        memcpy(*pstring,string,(strlen(string)+1)*sizeof(char));
    808810}
    809811/*}}}*/
Note: See TracChangeset for help on using the changeset viewer.