mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Fix warning
This commit is contained in:
parent
fc4acb818f
commit
8e7f0e2ea9
1 changed files with 3 additions and 2 deletions
|
|
@ -172,8 +172,9 @@ void network_receive_mod_list(struct Packet* p) {
|
|||
packet_read(p, &file->size, sizeof(u64));
|
||||
if (mod->isDirectory && !strstr(file->relativePath, "actors")) {
|
||||
char tmp[SYS_MAX_PATH];
|
||||
snprintf(tmp, SYS_MAX_PATH, "%s-%s", mod->relativePath, file->relativePath);
|
||||
memcpy(file->relativePath, tmp, strlen(tmp) + 1);
|
||||
if (snprintf(tmp, SYS_MAX_PATH, "%s-%s", mod->relativePath, file->relativePath) >= 0) {
|
||||
memcpy(file->relativePath, tmp, strlen(tmp) + 1);
|
||||
}
|
||||
}
|
||||
normalize_path(file->relativePath);
|
||||
LOG_INFO(" '%s': %llu", file->relativePath, (u64)file->size);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue