Weird tlou fix

This commit is contained in:
Zion Nimchuk 2017-09-06 12:35:15 -07:00 committed by Ani
parent bfe2bccc51
commit 7c897d5019
1 changed files with 3 additions and 3 deletions

View File

@ -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;