diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2012-01-03 23:58:19 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-01-04 00:16:39 +0200 |
commit | 2717fe35ae7fd35b787b53d291919449d307ea01 (patch) | |
tree | e4e1134cc9443e292252b4475e9086d977fd1cf2 /sal/osl/unx/file.cxx | |
parent | 7cc28bae3a8aded334f40bf3a5593b5f6067fdd8 (diff) |
Use sizeof(s)-1 instead of strlen(s) on string literals
Diffstat (limited to 'sal/osl/unx/file.cxx')
-rw-r--r-- | sal/osl/unx/file.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx index 458554ea9e4f..bb319022df56 100644 --- a/sal/osl/unx/file.cxx +++ b/sal/osl/unx/file.cxx @@ -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; |