mirror of https://github.com/RPCS3/rpcs3.git
Weird tlou fix
This commit is contained in:
parent
bfe2bccc51
commit
7c897d5019
|
@ -69,9 +69,9 @@ s32 cellSslCertificateLoader(u64 flag, vm::ptr<char> buffer, u32 size, vm::ptr<u
|
||||||
final.append(getCert(certPath, i));
|
final.append(getCert(certPath, i));
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(buffer.get_ptr(), 0, size-1);
|
memset(buffer.get_ptr(), 0, size);
|
||||||
strncpy(buffer.get_ptr(), final.c_str(), size - 1);
|
strncpy(buffer.get_ptr(), final.c_str(), size);
|
||||||
buffer.get_ptr()[size - 1] = '\0';
|
buffer.get_ptr()[size] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
|
|
Loading…
Reference in New Issue