Kaydet (Commit) 2717fe35 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Use sizeof(s)-1 instead of strlen(s) on string literals

üst 7cc28bae
......@@ -914,7 +914,7 @@ SAL_CALL osl_openFile( rtl_uString* ustrFileURL, oslFileHandle* pHandle, sal_uIn
* we should mmap it from the .apk file
*/
if (!(uFlags & osl_File_OpenFlag_Write) &&
strncmp (buffer, "/assets/", strlen ("/assets/")) == 0)
strncmp (buffer, "/assets/", sizeof ("/assets/") - 1) == 0)
{
void *address;
size_t size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment