- Timestamp:
- Nov 21, 2017, 10:24:14 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/prototype-v0/zoo-project/zoo-kernel/service_internal_python.c
r790 r854 57 57 * from the ZOO-Kernel Python environment: 58 58 * - "_" corresponding to the PythonTranslate function 59 * - "upd te_status" corresponding to the PythonUpdateStatus function59 * - "update_status" corresponding to the PythonUpdateStatus function 60 60 * @see PythonTranslate, PythonUpdateStatus 61 61 */ … … 163 163 fprintf(stderr,"PYTHON SUPPORT (%i)\n",strlen(tmp->value)); 164 164 #endif 165 python_path=(char*)malloc((strlen(tmp->value) )*sizeof(char));165 python_path=(char*)malloc((strlen(tmp->value)+1)*sizeof(char)); 166 166 sprintf(python_path,"%s",tmp->value); 167 167 hasToClean=1; … … 281 281 dumpMaps(*real_outputs); 282 282 #endif 283 }else{ 283 }else{ 284 284 PythonZooReport(m,tmp->value,0); 285 285 res=-1; … … 323 323 char *pbt=NULL; 324 324 if(PyString_Check(trace)){ 325 pbt=(char*)malloc(( 7+strlen(PyString_AsString(trace))+1)*sizeof(char));325 pbt=(char*)malloc((8+strlen(PyString_AsString(trace)))*sizeof(char)); 326 326 sprintf(pbt,"TRACE: %s",PyString_AsString(trace)); 327 327 } 328 328 else 329 329 fprintf(stderr,"EMPTY TRACE ?"); 330 330 331 331 trace=NULL; 332 332
Note: See TracChangeset
for help on using the changeset viewer.