Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
win32.c: don't call wcscpy() with in == out
Since both the input and output parameters are restrict qualified, this would be invalid, and it is possibe for Perl_mapW() to return its parameter. This warned on gcc: win32.c: In function 'win32_link': win32.c:3712:40: warning: passing argument 1 to 'restrict'-qualified parameter aliases with argument 2 [-Wrestrict] 3712 | ((aTHXa(PERL_GET_THX)), wcscpy(wOldName, PerlDir_mapW(wOldName)), | ^~~~~~~~
- Loading branch information