Project

General

Profile

Actions

Backport #5325

closed

Bug in win32.c CreateChild

Added by jfrench (James French) over 12 years ago. Updated almost 8 years ago.

Status:
Rejected
[ruby-core:39550]

Description

Hi,

Revision 31811 by yugui (http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=31811) which was merged from the trunk contains a bug. It should be lstrlen instead of lstrlenW as its a char* not a wchar_t*. This has caused us a lot of problems with spawn failing spuriously.

This should really be corrected on the 1.9.2 branch (it looks like the code has moved on on the trunk and its not an issue).

Given that its a one character change and I'm not set up for submitting patches would someone be able to fix this for me?

As a side note, compiling with warnings as errors would have caught this....

When is the next 1.9.2 patch release due?

Cheers,
James

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0