summaryrefslogtreecommitdiff
path: root/Kernel/Process.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-30 08:57:01 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-30 08:57:01 +0200
commit8f45a259fc9f8180b366cbaccac1af6d368e3b3a (patch)
tree5045baec395404f39728611190925f4ce39c2ae4 /Kernel/Process.cpp
parentdd696e7c75c5fb630d10d0ce37e53d88fecb58a0 (diff)
downloadserenity-8f45a259fc9f8180b366cbaccac1af6d368e3b3a.zip
ByteBuffer: Remove pointer() in favor of data()
We had two ways to get the data inside a ByteBuffer. That was silly.
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r--Kernel/Process.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index f4cbdbc3af..c82ac01357 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -1240,7 +1240,7 @@ int Process::sys$readlink(const char* path, char* buffer, ssize_t size)
if (!contents)
return -EIO; // FIXME: Get a more detailed error from VFS.
- memcpy(buffer, contents.pointer(), min(size, (ssize_t)contents.size()));
+ memcpy(buffer, contents.data(), min(size, (ssize_t)contents.size()));
if (contents.size() + 1 < size)
buffer[contents.size()] = '\0';
return 0;