mirror of
https://git.zx2c4.com/cgit
synced 2024-11-22 08:28:42 +00:00
ui-log: ban strcpy()
Git upstream bans strcpy() with commit: automatically ban strcpy() c8af66ab8ad7cd78557f0f9f5ef6a52fd46ee6dd Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
parent
60a930044d
commit
71ba7187e5
2
ui-log.c
2
ui-log.c
@ -234,7 +234,7 @@ static void print_commit(struct commit *commit, struct rev_info *revs)
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user