I still get the same length discrepancy on ActivePerl - ie Inline's 20 vs Win32::API's 21.
I have a vague recollection that somewhere in Win32::API, they have code to extend the length of various strings/buffers passed in and/or out by one to 'allow room for terminating nulls'.
Maybe I'm too tired or mis-remembering, because I cannot find it now? :(
In reply to Re^4: Win32::API Memory Exception with GetCommandLine() (which returns a static string)
by BrowserUk
in thread Win32::API Memory Exception with GetCommandLine() (which returns a static string)
by Wyrdweaver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |