summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/syscalls.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-09-04 17:52:42 +0000
committerChristopher Faylor <me@cgf.cx>2000-09-04 17:52:42 +0000
commitf76325499abbd5e5212cbe7b479008e3bf1b1a96 (patch)
tree929c38930f469b7d0e53193223c30101081f9ecf /winsup/cygwin/syscalls.cc
parent9c136d7ea6c180419f55b166c9acfed2ac6e2221 (diff)
downloadcygnal-f76325499abbd5e5212cbe7b479008e3bf1b1a96.tar.gz
cygnal-f76325499abbd5e5212cbe7b479008e3bf1b1a96.tar.bz2
cygnal-f76325499abbd5e5212cbe7b479008e3bf1b1a96.zip
* path.cc (readlink): Check if buffer length is positive. Truncate output to
buffer length. Don't terminate buffer with '\0'.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 876ed4cee..c95eef38b 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -601,8 +601,7 @@ _link (const char *a, const char *b)
&dwBytesWritten,
TRUE, // abort
FALSE, // don't process security
- &lpContext
- );
+ &lpContext);
}
else
syscall_printf ("cannot write streamId, %E");
@@ -1635,7 +1634,7 @@ get_osfhandle (int fd)
if (fdtab.not_open (fd))
{
- set_errno ( EBADF);
+ set_errno (EBADF);
}
else
{