diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2014-04-09 00:00:13 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2014-04-09 00:00:13 +0200 |
commit | 87f6ee55fc14327321e9d606ac9683c112fefaa9 (patch) | |
tree | 48b13ff430fa710e9a6417ed7173439643bf389e /sfeed_web.c | |
parent | b8b24fe4131e7e7fb46eb330b14ce340844b601a (diff) |
cleanup, remove javascript hotkey
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Diffstat (limited to 'sfeed_web.c')
-rw-r--r-- | sfeed_web.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfeed_web.c b/sfeed_web.c index 66e7260..17541b1 100644 --- a/sfeed_web.c +++ b/sfeed_web.c @@ -38,7 +38,7 @@ xmlattr(XMLParser *p, const char *tag, size_t taglen, const char *name, return; if(isbase) { if(!strncasecmp(name, "href", namelen)) - strlcpy(basehref, value, sizeof(basehref) - 1); + strlcpy(basehref, value, sizeof(basehref)); } else if(islink) { if(!strncasecmp(name, "type", namelen)) { if(!strncasecmp(value, "application/atom", strlen("application/atom")) || @@ -46,7 +46,7 @@ xmlattr(XMLParser *p, const char *tag, size_t taglen, const char *name, isfeedlink = 1; } } else if(!strncasecmp(name, "href", namelen)) - strlcpy(feedlink, value, sizeof(feedlink) - 1); + strlcpy(feedlink, value, sizeof(feedlink)); } } @@ -56,7 +56,7 @@ main(int argc, char **argv) { /* base href */ if(argc > 1) - strlcpy(basehref, argv[1], sizeof(basehref) - 1); + strlcpy(basehref, argv[1], sizeof(basehref)); xmlparser_init(&x, stdin); x.xmltagstart = xmltagstart; |