Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-09-05 05:55:01 +0400
committerChristopher Faylor <me@cgf.cx>2003-09-05 05:55:01 +0400
commitc6f53ff6bedce72a721f71645cd32d2805ba1a3b (patch)
tree1820cd0e33f4a545a1bf3630b2fe3b898ce76cff /winsup/cygwin/fhandler_console.cc
parentcf88c20fd99ca043af3063f2803864c1dd416dd6 (diff)
* dcrt0.cc (__argc_safe): New variable.
(dll_crt0_1): Store argc in __argc_safe, which will theoretically remain untouched by the user. * fhandler_console.cc (fhandler_console::read): Silence some compiler warnings. * fhandler_raw.cc (fhandler_dev_raw::raw_read): Ditto. * pinfo.cc (_pinfo::commune_recv): Carefully bound argv scan and check for potentially bad pointers since user could have set argv cell to anythinw. * cygheap.h (CYGHEAPSIZE): Bump up size.
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r--winsup/cygwin/fhandler_console.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index 0d7015246..27f85db1b 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -507,12 +507,12 @@ fhandler_console::read (void *pv, size_t& buflen)
err:
__seterrno ();
- (ssize_t) buflen = -1;
+ buflen = (size_t) -1;
return;
sig_exit:
set_sig_errno (EINTR);
- (ssize_t) buflen = -1;
+ buflen = (size_t) -1;
return;
}