all repos — cgit @ 71ba7187e5eeeaf2f66bc27bc3b48a2014d37bb7

a hyperfast web frontend for git written in c

ui-log: ban strcpy()

Git upstream bans strcpy() with commit:

  automatically ban strcpy()
  c8af66ab8ad7cd78557f0f9f5ef6a52fd46ee6dd

Signed-off-by: Christian Hesse <mail@eworm.de>
Christian Hesse mail@eworm.de
Tue, 28 Aug 2018 18:08:33 +0200
commit

71ba7187e5eeeaf2f66bc27bc3b48a2014d37bb7

parent

60a930044d57faae4fcb84cba9d85310b0c767a7

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M ui-log.cui-log.c

@@ -234,7 +234,7 @@ strbuf_trim(&msgbuf);

strbuf_add(&msgbuf, "\n\n", 2); /* Place wrap_symbol at position i in info->subject */ - strcpy(info->subject + i, wrap_symbol); + strlcpy(info->subject + i, wrap_symbol, subject_len - i + 1); } } cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head,