public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: Use correct string conversion
@ 2019-06-27 7:16 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2019-06-27 7:16 UTC (permalink / raw)
To: cygwin-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=40b947e7d53f44d82fb0a0971d543715ecd37070
commit 40b947e7d53f44d82fb0a0971d543715ecd37070
Author: Mark Geisert <mark@maxrnd.com>
Date: Wed Jun 26 22:31:56 2019 -0700
Cygwin: Use correct string conversion
Correct the string conversion calls so both argv elements get converted
at full precision.
Diff:
---
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 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);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-06-27 7:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-27 7:16 [newlib-cygwin] Cygwin: Use correct string conversion Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).