mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-08-26 07:25:14 +02:00
Fix a potential debug buffer overrun.
This commit is contained in:
@@ -788,7 +788,7 @@ void SymbolMap::SetLabelName(const char* name, u32 address) {
|
||||
auto symbolKey = std::make_pair(labelInfo->second.module, labelInfo->second.addr);
|
||||
auto label = labels.find(symbolKey);
|
||||
if (label != labels.end()) {
|
||||
strcpy(label->second.name,name);
|
||||
strncpy(label->second.name, name, 128);
|
||||
label->second.name[127] = 0;
|
||||
|
||||
// Refresh the active item if it exists.
|
||||
|
||||
Reference in New Issue
Block a user