aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorAndrius Bentkus <andrius.bentkus@gmail.com>2015-01-23 13:28:47 +0100
committerSaúl Ibarra Corretgé <saghul@gmail.com>2015-01-27 11:31:16 +0100
commit1e59ab1d49bace6d43726b076d2e820f318c53f9 (patch)
tree1cb89295c3668dbe62cd97d9cef0926a255e421c /docs/src
parent79e69fd5551426120e3fd77f4fc59f2bca66bd1f (diff)
downloadlibuv-1e59ab1d49bace6d43726b076d2e820f318c53f9.tar.gz
libuv-1e59ab1d49bace6d43726b076d2e820f318c53f9.zip
fs, pipe: no trailing terminator in exact sized buffers
uv_fs_poll_getpath, uv_pipe_getsockname, uv_fs_event_getpath used to return the trailing null terminator, even though the functions returned the size. Fixes: https://github.com/libuv/libuv/issues/155 PR-URL: https://github.com/libuv/libuv/pull/159 Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Diffstat (limited to 'docs/src')
-rw-r--r--docs/src/fs_event.rst3
-rw-r--r--docs/src/fs_poll.rst3
-rw-r--r--docs/src/pipe.rst3
3 files changed, 9 insertions, 0 deletions
diff --git a/docs/src/fs_event.rst b/docs/src/fs_event.rst
index 0c9041e0..d92e88c8 100644
--- a/docs/src/fs_event.rst
+++ b/docs/src/fs_event.rst
@@ -102,4 +102,7 @@ API
is not big enough UV_ENOBUFS will be returned and len will be set to the
required size.
+ .. versionchanged:: 1.3.0 the returned length no longer includes the terminating null byte,
+ and the buffer is not null terminated.
+
.. seealso:: The :c:type:`uv_handle_t` API functions also apply.
diff --git a/docs/src/fs_poll.rst b/docs/src/fs_poll.rst
index df310535..58db1d2f 100644
--- a/docs/src/fs_poll.rst
+++ b/docs/src/fs_poll.rst
@@ -66,4 +66,7 @@ API
is not big enough UV_ENOBUFS will be returned and len will be set to the
required size.
+ .. versionchanged:: 1.3.0 the returned length no longer includes the terminating null byte,
+ and the buffer is not null terminated.
+
.. seealso:: The :c:type:`uv_handle_t` API functions also apply.
diff --git a/docs/src/pipe.rst b/docs/src/pipe.rst
index 9fbb1f6c..11e61302 100644
--- a/docs/src/pipe.rst
+++ b/docs/src/pipe.rst
@@ -65,6 +65,9 @@ API
output. If the buffer is not big enough ``UV_ENOBUFS`` will be returned and
len will contain the required size.
+ .. versionchanged:: 1.3.0 the returned length no longer includes the terminating null byte,
+ and the buffer is not null terminated.
+
.. c:function:: void uv_pipe_pending_instances(uv_pipe_t* handle, int count)
Set the number of pending pipe instance handles when the pipe server is