Changeset 348 for cpp/frams/genetics/f9
- Timestamp:
- 04/09/15 23:51:28 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/f9/oper_f9.cpp
r319 r348 42 42 if (strchr(turtle_commands_f9, gene[i])) validated += gene[i]; //validated contains only turtle_commands_f9 43 43 free(gene); 44 gene = strdup(validated ); //reallocate44 gene = strdup(validated.c_str()); //reallocate 45 45 return GENOPER_OK; 46 46 } … … 84 84 } 85 85 free(gene); 86 gene = strdup(newgeno ); //reallocate86 gene = strdup(newgeno.c_str()); //reallocate 87 87 } 88 88
Note: See TracChangeset
for help on using the changeset viewer.