Fix warning
This commit is contained in:
parent
190dbd9f9a
commit
53b48e4eb9
|
@ -172,9 +172,10 @@ 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);
|
||||
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…
Reference in New Issue