summaryrefslogtreecommitdiff
path: root/src/string/strtok.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-06-11 13:44:21 -0400
committerJakob Kaivo <jkk@ung.org>2024-06-11 13:44:21 -0400
commit4f29706128f3d3a66f0503d07c4960d4021aaf27 (patch)
tree7f76ae1b7819b99756feb1daf93cfe31d5c41c3b /src/string/strtok.c
parent523944d96e11bde68bf9bcf8e42b7ebc99c5ed3d (diff)
support watching for dangerous parameter accessnon-posix
Diffstat (limited to 'src/string/strtok.c')
-rw-r--r--src/string/strtok.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/string/strtok.c b/src/string/strtok.c
index b48bba18..7abe7303 100644
--- a/src/string/strtok.c
+++ b/src/string/strtok.c
@@ -16,6 +16,8 @@ char * strtok(char * restrict s1, const char * restrict s2)
}
/* nothing is copied, overlap is OK */
+ /* TODO: two dangerous reads */
+
/*
RETURN(CONSTANT(NULL), there are no further tokens, only token separators);
RETURN(NONNULL, a pointer to the first character of the next token);