aboutsummaryrefslogtreecommitdiff
path: root/winsup/utils
diff options
context:
space:
mode:
authorMark Geisert <mark@maxrnd.com>2019-06-26 22:31:56 -0700
committerCorinna Vinschen <corinna@vinschen.de>2019-06-27 09:13:47 +0200
commit40b947e7d53f44d82fb0a0971d543715ecd37070 (patch)
treef93479f1407ed36acb7e253a2358585d299c5d5e /winsup/utils
parent8b080534cadd8b9e920c8b023e341937a2e274bc (diff)
downloadnewlib-40b947e7d53f44d82fb0a0971d543715ecd37070.zip
newlib-40b947e7d53f44d82fb0a0971d543715ecd37070.tar.gz
newlib-40b947e7d53f44d82fb0a0971d543715ecd37070.tar.bz2
Cygwin: Use correct string conversion
Correct the string conversion calls so both argv elements get converted at full precision.
Diffstat (limited to 'winsup/utils')
-rw-r--r--winsup/utils/cygwin-console-helper.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/utils/cygwin-console-helper.cc b/winsup/utils/cygwin-console-helper.cc
index 8f62ed7..0e04f4d 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);
}