diff --git a/trick_source/sim_services/MemoryManager/MemoryManager_ref_assignment.cpp b/trick_source/sim_services/MemoryManager/MemoryManager_ref_assignment.cpp index 326e5f76..183a0fad 100644 --- a/trick_source/sim_services/MemoryManager/MemoryManager_ref_assignment.cpp +++ b/trick_source/sim_services/MemoryManager/MemoryManager_ref_assignment.cpp @@ -251,7 +251,7 @@ int Trick::MemoryManager::assign_recursive(void* base_addr, ATTRIBUTES* attr, in } break; case TRICK_STRING : - assign_addr = (char*)base_addr + offset * sizeof(char*); + assign_addr = (char*)base_addr + offset * sizeof(std::string); if (v_tree && v_tree->v_data) { *(std::string*)assign_addr = vval_string(v_tree->v_data); } else {