[PATCH] Cygwin: Use correct string conversion

Corinna Vinschen corinna-cygwin@cygwin.com
Thu Jun 27 07:17:00 GMT 2019


On Jun 26 22:31, Mark Geisert wrote:
> Correct the string conversion calls so both argv elements get converted
> at full precision.
> ---
>  winsup/utils/cygwin-console-helper.cc | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/winsup/utils/cygwin-console-helper.cc b/winsup/utils/cygwin-console-helper.cc
> index 8f62ed7e6..0e04f4d18 100644
> --- a/winsup/utils/cygwin-console-helper.cc
> +++ b/winsup/utils/cygwin-console-helper.cc
> @@ -5,9 +5,9 @@ main (int argc, char **argv)
>    char *end;
>    if (argc != 3)
>      exit (1);
> -  HANDLE h = (HANDLE) strtoul (argv[1], &end, 0);
> +  HANDLE h = (HANDLE) strtoull (argv[1], &end, 0);
>    SetEvent (h);
> -  h = (HANDLE) strtoul (argv[2], &end, 0);
> +  h = (HANDLE) strtoull (argv[2], &end, 0);
>    WaitForSingleObject (h, INFINITE);
>    exit (0);
>  }
> -- 
> 2.21.0

Both patches pushed.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20190627/8a92083b/attachment.sig>


More information about the Cygwin-patches mailing list