diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2012-07-25 20:03:22 +0200 |
---|---|---|
committer | Arnaud Versini <arnaud.versini@gmail.com> | 2012-07-27 20:19:13 +0200 |
commit | d6c284e4b146a44ba69a96836c59a98d077bb934 (patch) | |
tree | 13f4f278cd9642eadcbadbc84581573aafb28c58 /sal/qa/osl | |
parent | 5dbbe223c8586bd653685d27c664aa8395632e4a (diff) |
Use memset and memcpy insteadof rtl_zeroMemory and rtl_copyMemory in sal
Change-Id: I4f9649ca61c988d425b59e41549d1c46bb808f2c
Diffstat (limited to 'sal/qa/osl')
-rw-r--r-- | sal/qa/osl/file/osl_File.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx index dff2840fc80e..b50735d16867 100644 --- a/sal/qa/osl/file/osl_File.cxx +++ b/sal/qa/osl/file/osl_File.cxx @@ -6063,7 +6063,7 @@ namespace osl_Directory void rm_test_path(const OUString& path) { sal_Unicode buffer[PATH_BUFFER_SIZE]; - rtl_copyMemory(buffer, path.getStr(), (path.getLength() + 1) * sizeof(sal_Unicode)); + memcpy(buffer, path.getStr(), (path.getLength() + 1) * sizeof(sal_Unicode)); sal_Int32 i = rtl_ustr_lastIndexOfChar(buffer, '/'); if (i == path.getLength()) @@ -6185,7 +6185,7 @@ namespace osl_Directory { char* drv = get_unused_drive_letter(); char buff[PATH_BUFFER_SIZE]; - rtl_zeroMemory(buff, sizeof(buff)); + memset(buff, 0, sizeof(buff)); strncpy(buff, drv, 1); strcat(buff, ":\\"); |