summaryrefslogtreecommitdiffstats
path: root/logd/LogKlog.h
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2015-09-02 07:39:53 -0700
committerSteve Kondik <steve@cyngn.com>2015-11-01 04:29:12 -0800
commitc5a324fe084901a93215498f983703e483d9c000 (patch)
tree2de4fecf9739c88134280ffda3570fd34ab06c58 /logd/LogKlog.h
parent064c3a5ea2bdc8a0332f8d7d1c40f593c4b2ff1f (diff)
downloadsystem_core-c5a324fe084901a93215498f983703e483d9c000.zip
system_core-c5a324fe084901a93215498f983703e483d9c000.tar.gz
system_core-c5a324fe084901a93215498f983703e483d9c000.tar.bz2
logd: log_strtok_r deal with nuls
Rename to log_strntok_r and change from dealing with strings to dealing with a string and an associated length. Bug: 23517551 Change-Id: Ia72f1305a53f55eeef9861ac378fb8205fd2378e
Diffstat (limited to 'logd/LogKlog.h')
-rw-r--r--logd/LogKlog.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/logd/LogKlog.h b/logd/LogKlog.h
index d1a248e..469affd 100644
--- a/logd/LogKlog.h
+++ b/logd/LogKlog.h
@@ -21,7 +21,7 @@
#include <log/log_read.h>
#include "LogReader.h"
-char *log_strtok_r(char *str, char **saveptr);
+char *log_strntok_r(char *s, size_t *len, char **saveptr, size_t *sublen);
class LogKlog : public SocketListener {
LogBuffer *logbuf;