mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Fixed truncated adhoc group name issue.
This commit is contained in:
1 parent
182bb8ebf2
commit
4a0ae39293
1 file changed
+1
-1
@@ -2752,7 +2752,7 @@ int NetAdhocctl_Create(const char *groupName) {
|
||||
|
||||
// Set Network Name
|
||||
if (groupName) {
|
||||
truncate_cpy((char *)parameter.group_name.data, sizeof(parameter.group_name.data), groupName);
|
||||
strncpy((char *)parameter.group_name.data, groupName, sizeof(parameter.group_name.data));
|
||||
} else {
|
||||
memset(¶meter.group_name, 0, sizeof(parameter.group_name));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user