cmd: size buffer in create_full_path() correctly
Dan Kegel
dank at kegel.com
Tue Feb 2 19:42:01 CST 2010
Wide string terminators are sizeof(WCHAR), not 1 byte.
Fixes the valgrind warning
Invalid write of size 2
at create_full_path (unicode.h:224)
by WCMD_create_dir (builtins.c:366)
by WCMD_execute (wcmdmain.c:1465)
Address 0x7f04d138 is 16 bytes inside a block of size 17 alloc'd
at RtlAllocateHeap (heap.c:254)
by create_full_path (builtins.c:322)
by WCMD_create_dir (builtins.c:366)
by WCMD_execute (wcmdmain.c:1465)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fullpath.patch
Type: text/x-patch
Size: 521 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100202/e36d26fd/attachment.bin>
More information about the wine-patches
mailing list