8000 Update Modules/posixmodule.c · python/cpython@7b6727c · GitHub
[go: up one dir, main page]

Skip to content

Commit 7b6727c

Browse files
Update Modules/posixmodule.c
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
1 parent 1313ceb commit 7b6727c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Modules/posixmodule.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5558,8 +5558,7 @@ os__path_abspath_impl(PyObject *module, PyObject *path)
55585558
abs = abs_buf;
55595559

55605560
// Join cwd & path
5561-
wchar_t *p = abs_buf;
5562-
memcpy(p, cwd_buf, cwd_len * sizeof(wchar_t));
5561+
wchar_t *p = memcpy(abs_buf, cwd_buf, cwd_len * sizeof(wchar_t));
55635562
p += cwd_len;
55645563
if (add_sep) {
55655564
*(p++) = SEP;

0 commit comments

Comments
 (0)
0