summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-01-05 12:52:54 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-01-05 12:52:54 +0100
commitccd26d2017c7c9a83ef7d586ae039008c23ddcec (patch)
tree9a5d08a99c536bb97e2e03e4b1db13b4a80f168d
parenta1d106ab3e04b2c3fde4fca23ea72551a892efac (diff)
sfeed: add note of truncation of tags (not an issue)
-rw-r--r--sfeed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfeed.c b/sfeed.c
index dda2985..dd76a2d 100644
--- a/sfeed.c
+++ b/sfeed.c
@@ -612,7 +612,7 @@ xml_handler_start_element(XMLParser *p, const char *name, size_t namelen)
if(ctx.tag[0] != '\0')
return;
/* in item */
- strlcpy(ctx.tag, name, sizeof(ctx.tag));
+ strlcpy(ctx.tag, name, sizeof(ctx.tag)); /* NOTE: truncation ignored */
ctx.taglen = namelen;
ctx.tagid = gettag(ctx.item.feedtype, ctx.tag, ctx.taglen);
if(ctx.tagid == TagUnknown)